Graph operations

Disjoint union

MolecularGraph.Graph.disjointunion!Method
disjointunion!(g1::T, g2::T, G::T...) where {T<:OrderedGraph} -> T

Generate disjoint union graph of given graphs. g1 will be overwritten by the union graph. Unlike non-destructive disjointunion, g1 does not retain any information about other given graphs but a bit faster.

source
MolecularGraph.Graph.disjointunionMethod
disjointunion(g1::UndirectedGraph, g2::UndirectedGraph,
    G::UndirectedGraph...) -> DisjointUnionGraph

Generate disjoint union graph of given graphs. The new graph with type DisjointUnionGraph retains mapping to the original graphs as nodes and edges attributes.

source

Line graph

Product of graphs