EdgeWeightedGraphQ

EdgeWeightedGraphQ[g]

yields True if the graph g is an edge-weighted graph and False otherwise.

Details

Examples

open allclose all

Basic Examples  (2)

Test whether a graph is an edge-weighted graph:

Test matrix graphs:

Scope  (7)

EdgeWeightedGraphQ works with undirected graphs:

Directed graphs:

Weighted graphs:

Multigraphs:

Mixed graphs:

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

EdgeWeightedGraphQ works with large graphs:

Properties & Relations  (2)

The edge-weighted graph is always a weighted graph:

The weighted graph is not always an edge-weighted graph:

Possible Issues  (1)

EdgeWeightedGraphQ gives False for non-explicit graphs:

Introduced in 2019
 (12.0)