module documentation
Undocumented
Function | _construct |
Generates a graph from its adjacency matrix. |
Function | _construct |
Generates a graph from its weighted adjacency matrix. |
Generates a graph from its adjacency matrix.
Parameters | |
cls | Undocumented |
matrix | the adjacency matrix. Possible types are:
|
mode | the mode to be used. Possible values are:
|
*args | Undocumented |
**kwargs | Undocumented |
def _construct_graph_from_weighted_adjacency(cls, matrix, mode='directed', attr='weight', loops=True):
¶
Generates a graph from its weighted adjacency matrix.
Parameters | |
cls | Undocumented |
matrix | the adjacency matrix. Possible types are:
|
mode | the mode to be used. Possible values are:
These values can also be given as strings without the ADJ prefix. |
attr | the name of the edge attribute that stores the edge weights. |
loops | whether to include loop edges. When False, the diagonal of the adjacency matrix will be ignored. |