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

isWeaklyConnected -- checks if a digraph is weakly connected

Description

A digraph is said to be weakly connected if the underlying graph of D, that is, the graph formed by taking away direction from the edges so each edge becomes "2-way" again, is connected.

i1 : D = digraph({1,2,3,4},{{1,2},{2,3},{3,4},{4,2}});
i2 : isWeaklyConnected D

o2 = true

See also

Ways to use isWeaklyConnected:

  • isWeaklyConnected(Digraph)

For the programmer

The object isWeaklyConnected is a method function.


The source of this document is in Graphs.m2:4751:0.