Macaulay2 » Documentation
Packages » HilbertSchemeStrata :: isDirectedGraph
next | previous | forward | backward | up | index | toc

isDirectedGraph -- is the oriented graph directed

Description

The list L is list of edges of an oriented graph. The function checks whether the graph is directed, i.e., contains no loops.

i1 : L={(0,1),(0,2),(1,2)}

o1 = {(0, 1), (0, 2), (1, 2)}

o1 : List
i2 : isDirectedGraph L

o2 = true
i3 : L1={(0,1),(1,2),(2,0)}

o3 = {(0, 1), (1, 2), (2, 0)}

o3 : List
i4 : isDirectedGraph L1

o4 = false
i5 : L2={(0,0)}

o5 = {(0, 0)}

o5 : List
i6 : isDirectedGraph L2

o6 = false

Ways to use isDirectedGraph:

  • isDirectedGraph(List)

For the programmer

The object isDirectedGraph is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/HilbertSchemeStrata.m2:534:0.