next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
NautyGraphs :: removeEdges

removeEdges -- creates a list of graphs obtained by removing one edge from the given graph in all possible ways

Synopsis

Description

This method creates a list of all possible graphs obtainable from the given graph by removing one edge. Notice that isomorphic graphs are allowed within the list.
i1 : removeEdges graph {{1,2},{1,3},{2,3},{3,4},{4,5}}

o1 = {Graph{0 => set {2}      }, Graph{0 => set {1}   }, Graph{0 => set {1,
            1 => set {2}               1 => set {0, 2}         1 => set {0}
            2 => set {0, 1, 3}         2 => set {1, 3}         2 => set {0,
            3 => set {2, 4}            3 => set {2, 4}         3 => set {2,
            4 => set {3}               4 => set {3}            4 => set {3}
     ------------------------------------------------------------------------
     2}}, Graph{0 => set {1, 2}}, Graph{0 => set {1, 2}   }}
                1 => set {0, 2}         1 => set {0, 2}
     3}         2 => set {0, 1}         2 => set {0, 1, 3}
     4}         3 => set {4}            3 => set {2}
                4 => set {3}            4 => set {}

o1 : List
If the List input format is used, then one should use care as the list may contain isomorphic pairs.

See also

Ways to use removeEdges :