npap.PartitionResult#

class npap.PartitionResult[source]#

Bases: object

Store partition result with metadata for validation and tracking.

mapping#

Dictionary mapping cluster_id to list of node_ids.

Type:

dict[int, list[Any]]

original_graph_hash#

Hash of the original graph for compatibility validation.

Type:

str

strategy_name#

Name of the partitioning strategy used.

Type:

str

strategy_metadata#

Strategy-specific metadata and parameters.

Type:

dict[str, Any]

n_clusters#

Number of clusters created.

Type:

int

__init__(mapping, original_graph_hash, strategy_name, strategy_metadata, n_clusters)#
Parameters:
Return type:

None

Methods

__init__(mapping, original_graph_hash, ...)

Attributes

mapping: dict[int, list[Any]]#
original_graph_hash: str#
strategy_name: str#
strategy_metadata: dict[str, Any]#
n_clusters: int#
__init__(mapping, original_graph_hash, strategy_name, strategy_metadata, n_clusters)#
Parameters:
Return type:

None