Macaulay2 » Documentation
Packages » Graphs :: isConnected
next | previous | forward | backward | up | index | toc

isConnected -- determines whether a graph is connected

Description

A graph is connected when there exists a path of edges between any two vertices in the graph.

i1 : G = graph({{1,2},{2,3},{3,4},{5,6}},EntryMode=>"edges");
i2 : isConnected G;

See also

Ways to use isConnected:

  • isConnected(Graph)

For the programmer

The object isConnected is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Graphs.m2:4356:0.