GraphTheory
IsDirected
test if graph is directed
IsWeighted
test if graph is weighted
Calling Sequence
Parameters
Description
Examples
IsDirected(G)
IsWeighted(G)
G
-
graph
The IsDirected(G) function returns true or false depending on whether the input graph is a directed or undirected graph.
The IsWeighted(G) function returns true if G is a weighted graph, and false otherwise.
To make a graph directed or weighted, use the MakeDirected or MakeWeighted commands.
To remove directions and weights from a graph, use the UnderlyingGraph command.
See Also
MakeDirected
MakeWeighted
UnderlyingGraph
WeightMatrix
Download Help Document