How bit34/bit34-graph works
Bit34 Graph Library is a minimal in-process graph API for constructing and traversing graphs, including regular grids and rectangular or hexagonal layouts. A client defines concrete graph/node/edge types and an agent, creates or populates the graph, then calls a PathFinder to search accessible edges and receive a full or permitted partial Path. The excerpts show graph mutation, layout construction, and path-search behavior; agent ownership and edge/path value types are included from the source index. No external services or persistence are indicated.
Main entry points: Graph.cs Graph · RectGraph.cs Rectangular Grid · HexGraph.cs Hexagonal Grid · PathFinderProcess.cs Search Process
Components 25
Graph Core
- Graph
src/Com/Bit34Games/Graphs/Graph.cs - Node
src/Com/Bit34Games/Graphs/Node.cs - Edge
src/Com/Bit34Games/Graphs/Edge.cs - Agent
src/Com/Bit34Games/Graphs/Agent.cs - Owner Interfaces
src/Com/Bit34Games/Graphs/IAgentOwner.cs - Node Owner
src/Com/Bit34Games/Graphs/INodeOwner.cs - Path Owner
src/Com/Bit34Games/Graphs/IPathOwner.cs - Node Groups
src/Com/Bit34Games/Graphs/NodeGroup.cs
Grid Graphs
- Grid Graph
src/Com/Bit34Games/Graphs/GridGraph.cs - Grid Node
src/Com/Bit34Games/Graphs/GridNode.cs - Grid Edge
src/Com/Bit34Games/Graphs/GridEdge.cs - Rectangular Grid
src/Com/Bit34Games/Graphs/RectGraph.cs - Rect Node
src/Com/Bit34Games/Graphs/RectNode.cs - Rect Edge
src/Com/Bit34Games/Graphs/RectEdge.cs - Rect Directions
src/Com/Bit34Games/Graphs/RectEdgeDirections.cs - Hexagonal Grid
src/Com/Bit34Games/Graphs/HexGraph.cs - Hex Node
src/Com/Bit34Games/Graphs/HexNode.cs - Hex Edge
src/Com/Bit34Games/Graphs/HexEdge.cs - Hex Directions
src/Com/Bit34Games/Graphs/HexEdgeDirections.cs
Path Search
- Path Finder
src/Com/Bit34Games/Graphs/PathFinder.cs - Search Process
src/Com/Bit34Games/Graphs/PathFinderProcess.cs - Search Node
src/Com/Bit34Games/Graphs/PathNode.cs - Path Result
src/Com/Bit34Games/Graphs/Path.cs - Path Types
src/Com/Bit34Games/Graphs/PathTypes.cs
Other components
- Library Client
Connections 25
- Library Client → Graph: creates graph
- Library Client → Path Finder: requests search
- Graph → Node: allocates nodes
src/Com/Bit34Games/Graphs/Graph.cs - Graph → Edge: allocates edges
src/Com/Bit34Games/Graphs/Graph.cs - Graph → Agent: registers agents
src/Com/Bit34Games/Graphs/Graph.cs - Graph → Owner Interfaces: implements ownership
src/Com/Bit34Games/Graphs/Graph.cs - Node → Edge: stores connections
src/Com/Bit34Games/Graphs/Node.cs - Agent → Path Owner: implements ownership
src/Com/Bit34Games/Graphs/Agent.cs - Grid Graph → Graph: extends
src/Com/Bit34Games/Graphs/GridGraph.cs - Grid Node → Node: extends
src/Com/Bit34Games/Graphs/GridNode.cs - Grid Edge → Edge: extends
src/Com/Bit34Games/Graphs/GridEdge.cs - Rectangular Grid → Grid Graph: extends
src/Com/Bit34Games/Graphs/RectGraph.cs - Rectangular Grid → Rect Node: creates nodes
src/Com/Bit34Games/Graphs/RectGraph.cs - Rectangular Grid → Rect Edge: creates edges
src/Com/Bit34Games/Graphs/RectGraph.cs - Rectangular Grid → Rect Directions: uses directions
src/Com/Bit34Games/Graphs/RectGraph.cs - Hexagonal Grid → Grid Graph: extends
src/Com/Bit34Games/Graphs/HexGraph.cs - Hexagonal Grid → Hex Node: creates nodes
src/Com/Bit34Games/Graphs/HexGraph.cs - Hexagonal Grid → Hex Edge: creates edges
src/Com/Bit34Games/Graphs/HexGraph.cs - Hexagonal Grid → Hex Directions: uses directions
src/Com/Bit34Games/Graphs/HexGraph.cs - Path Finder → Search Process: runs search
src/Com/Bit34Games/Graphs/PathFinder.cs - Search Process → Search Node: tracks candidates
src/Com/Bit34Games/Graphs/PathFinderProcess.cs - Search Process → Agent: reads graph owner
src/Com/Bit34Games/Graphs/PathFinderProcess.cs - Search Process → Path Finder: checks accessibility
src/Com/Bit34Games/Graphs/PathFinderProcess.cs - Path Finder → Path Result: returns result
src/Com/Bit34Games/Graphs/PathFinder.cs - Path Result → Path Types: uses classification
src/Com/Bit34Games/Graphs/Path.cs