next | previous | forward | backward | up | top | index | toc | Macaulay2 website
StatGraphs :: mixedGraph

mixedGraph -- create a mixed graph from a combination of undirected graph, digraph and bigraph

Synopsis

Description

This is a constructor of graphs of class MixedGraph from a combination of subgraphs of classes Graph, Digraph and Bigraph. One can also input any subset and any permutation of the arguments. Each type of subgraph can appear at most once.

Note that this constructor does not check the input satisfies the properties of loopless mixed graphs from Sadeghi and Lauritzen, 2020 <https://arxiv.org/pdf/1109.5909.pdf>.

i1 : G = mixedGraph(graph{{1,2}},digraph {{1,3},{2,3}},bigraph {{3,4}})

o1 = MixedGraph{Bigraph => Bigraph{3 => {4}}}
                                   4 => {3}
                Digraph => Digraph{1 => {3}}
                                   2 => {3}
                                   3 => {}
                Graph => Graph{1 => {2}}
                               2 => {1}

o1 : MixedGraph

See also

Ways to use mixedGraph :

For the programmer

The object mixedGraph is a method function.