Functions¶
Graph¶
|
Returns a degree view of single node or of nbunch of nodes. |
Returns a list of the frequency of each degree value. |
|
|
Returns the density of a graph. |
|
Return a summary of information for the graph G or a single node n. |
|
Returns a copy of the graph G with all of the edges removed. |
|
Return True if graph is directed. |
|
Returns a directed view of the graph graph. |
|
Returns an undirected view of the graph graph. |
|
Returns True if G has no edges. |
|
Add a star to Graph G_to_add_to. |
|
Add a path to the Graph G_to_add_to. |
|
Add a cycle to the Graph G_to_add_to. |
|
Returns the subgraph induced on nodes in nbunch. |
|
Returns a independent deep copy subgraph induced on nbunch. |
|
Returns a independent deep copy subgraph induced by the specified edges. |
Nodes¶
|
Returns an iterator over the graph nodes. |
Returns the number of nodes in the graph. |
|
|
Returns a list of nodes connected to node n. |
|
Returns all of the neighbors of a node in the graph. |
|
Returns the non-neighbors of the node in the graph. |
|
Returns the common neighbors of two nodes in a graph. |
Edges¶
Self loops¶
|
Returns an iterator over selfloop edges. |
Returns the number of selfloop edges. |
|
Returns an iterator over nodes with self loops. |
Attributes¶
|
Returns True if G has weighted edges. |
|
Returns True if G has negatively weighted edges. |