Skip to content

Subgraphs #109

@moaxcp

Description

@moaxcp
  • Define components of graph
graph {
    edge 'A', 'B'  
    subgraph {
        edge 'C', 'D'
        subgraph {
            edge 'X', 'Y'
        }
    }
    edge 'Y', 'Z'
}
  • When a vertex or edge is added it is added to parent subgraphs and main graph (may need listeners)
  • graphs are maps
  • subgraph is a graph
  • subgraph can have subgraphs
  • if vertex or edge is missing an entry it will check all parent graphs for entry and return found value
  • vertex or edge can be in multiple subgraphs
  • subgraph is always same type as main graph (share type variable)
  • subgraphs can be
  • if a named subgraph is used inside other subgraphs what is the behavior. How does grapgviz do it?
Graph {
    subgraph {
        color = 'blue'
        edge 'A', 'B'
    }
}

Edge and vertices will be blue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions