π¦Module 1: SKComponents
The Node
, NodeSet
, and Graph
components form the core of a graph-based data structure system.
Node: A
Node
is an individual element within the graph. Each node can hold various data and attributes and is connected to other nodes through edges. Nodes are the fundamental building blocks of the graph, and their interactions and connections define the graph's structure and behavior.NodeSet:
Nodesets
are a specialized collection designed to holdNode
objects. It acts like a container that manages groups of nodes, offering functionalities such as randomizing and filtering over nodes. Its primary purpose is to facilitate the handling of nodes as a collective, ensuring efficient operations on groups of nodes.Graph: The
Graph
component represents the entire graph structure. It is essentially a network comprising nodes (Node
objects) interconnected by edges, which represent relationships or links between the nodes. TheGraph
handles the overall structure, including the creation, deletion, and manipulation of nodes and their relationships, along with functionalities like merging, forking, and data serialization. It inherits fromNodeSet
.
Together, these components provide a comprehensive framework for representing and manipulating complex network structures in an organized and efficient manner.
Furthermore, this module also includes many Graph Search Algorithms and the annexed Path
class.
Last updated