Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

WeightedGraphQ

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

DetailsDetails

  • 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.
Introduced in 2010
(8.0)