|
nodes(G)
Return a copy of the graph nodes in a list. |
source code
|
|
|
nodes_iter(G)
Return an iterator over the graph nodes. |
source code
|
|
|
edges(G,
nbunch=None)
Return list of edges adjacent to nodes in nbunch. |
source code
|
|
|
|
|
degree(G,
nbunch=None,
with_labels=False)
Return degree of single node or of nbunch of nodes. |
source code
|
|
|
neighbors(G,
n)
Return a list of nodes connected to node n. |
source code
|
|
|
number_of_nodes(G)
Return the order of a graph = number of nodes. |
source code
|
|
|
number_of_edges(G)
Return the size of a graph = number of edges. |
source code
|
|
|
|
|
|
|
is_directed(G)
Return True if graph is directed. |
source code
|
|
|
|