This method calculates the distance Matrix of a given graph.
The graphNEL object for which the distance matrix will be calculated.
A flag indicating whether weights should be considered when performing the conversion (DEFAULT= FALSE). currently ignored, added for later development
This method returns the distance Matrix of a given graph. If the graph is weighted it will be treated as if it was an unweighted graph.
A distance matrix with dimensions V(g) x V(g).
Currently we ignore the edge weight information when calculating the distance matrix. This will most likely change in future versions.
Laurin Mueller, Karl Kugler
F. Harary, Graph Theory, Addison-Wesley series in mathematics, Perseus Books, 1994.
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.