yields True if the graph g is a weighted graph and False otherwise.


  • WeightedGraphQ will give True if there is an explicit VertexWeight or EdgeWeight property defined.
  • In cases where a weighted graph is expected, the default vertex and edge weights are taken to be .
  • Weights are often taken to mean cost, capacity, etc.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »