Fuzzy graph class.
|
|
__init__(self,
viter=None,
eiter=None,
directed=True)
Construct a fuzzy graph from optional iterables. |
source code
|
|
|
|
add_vertex(self,
vertex,
mu=1.0)
Add a fuzzy vertex to the fuzzy graph, optionally constructing the
vertex with the given membership degree. |
source code
|
|
|
|
|
set
|
|
|
FuzzySet
|
edges(self,
tail=None,
head=None)
Return a fuzzy set of edges with tail and/or head optionally
specified. |
source code
|
|
float
|
mu(self,
tail,
head=None)
Return the membership degree of a vertex or edge. |
source code
|
|
float
|
|
|
|
connect(self,
tail,
head,
mu=1.0)
Connect a pair of vertices with a new (fuzzy) edge. |
source code
|
|
|
Graph
|
|
|
Graph
|
|
|
|
normalize(self)
Normalize the fuzzy graph by normalizing its vertex and edge sets. |
source code
|
|
|
Inherited from graph.Graph:
__eq__,
__ge__,
__gt__,
__le__,
__lt__,
__ne__,
__repr__,
__str__,
adjacent,
connected,
dijkstra,
disconnect,
edges_by_weight,
floyd_warshall,
issubgraph,
issupergraph,
minimum_spanning_tree,
neighbors,
remove_edge,
remove_vertex,
shortest_path,
shortest_path_subgraph
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|