VertexWeightedGraphQ

VertexWeightedGraphQ[g]

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

Details

Examples

open allclose all

Basic Examples  (1)

Test whether a graph is a vertex-weighted graph:

Scope  (7)

VertexWeightedGraphQ works with undirected graphs:

Directed graphs:

Weighted graphs:

Multigraphs:

Mixed graphs:

VertexWeightedGraphQ gives False for anything that is not a vertex-weighted graph:

VertexWeightedGraphQ works with large graphs:

Properties & Relations  (2)

The vertex-weighted graph is always a weighted graph:

The weighted graph is not always a vertex-weighted graph:

Possible Issues  (1)

VertexWeightedGraphQ gives False for non-explicit graphs:

Introduced in 2019
 (12.0)