Skip to main content

Graph Variants

Graph-Based Data Structures

TypeDescriptionKey CharacteristicTypical Use CaseAccess PatternMemory BehaviorNotes
GraphVertices + edgesGeneral relationship modelNetworksTraversal-basedNode-basedBase concept
Adjacency ListEdge lists per vertexSpace efficientSparse graphsNeighbor-basedPointer-basedCommon representation
Adjacency Matrix2D edge tableFast edge lookupDense graphsIndexedContiguousO(V²) space
Directed GraphEdges have directionOne-way relationshipsDependenciesTraversal-basedNode-basedAsymmetric
Directed Acyclic GraphNo cyclesTopological orderSchedulingPath-basedNode-basedNo loops
Propositional DAGLogical expression DAGBoolean optimizationCompilersPath-basedNode-basedLogic graphs
MultigraphMultiple edges allowedParallel edgesTransport networksTraversal-basedNode-basedSelf-loops allowed
HypergraphEdges connect many nodesMulti-node relationsVLSI, databasesSet-basedNode-basedGeneralizes graphs
Graph-structured StackStack with graph linksMultiple predecessorsParsingPath-basedNode-basedControl-flow
Scene GraphHierarchical graphSpatial relationshipsGraphics enginesTraversal-basedTree-likeDAG variant
Decision TreeConditional graphRule-based pathsML modelsPath-basedTree-basedInterpretable
Binary Decision DiagramReduced decision graphCanonical formHardware verificationPath-basedNode-basedDAG optimized
Zero-suppressed BDDSparse BDD variantEfficient zerosCombinatoricsPath-basedNode-basedSet manipulation
And-Inverter GraphBoolean circuit graphAND + NOT nodesLogic synthesisSignal-basedNode-basedHardware design