create-graph-from-matrix
Guide: /guide/algorithms/graph/create-graph-from-matrix
Signature
createGraphFromMatrix(matrix, fieldsList, type);
Params:
Name | Type | Required | Default | Description |
---|---|---|---|---|
matrix | TypeArrayMatrix | + | Adjacency matrix N*N | |
fieldsList | Array<T> | + | Ordered list of all vertices | |
type | EnumGraphType | + | UNDIRECTED/DIRECTED |