athena.graph_builder.base_graph_builder module¶
Reference¶
-
class
BaseGraphBuilder
(config)[source]¶ Bases:
abc.ABC
-
__init__
(config)[source]¶ Base-Graph Builder constructor
- Parameters
config (
dict
) – Dictionary containing a dict called builder_params that provides function call arguments to the build_topology function
-
classmethod
from_mask
(config, mask)[source]¶ Construct graph topology from segmentation masks.
- Parameters
config (
dict
) – config: Dictionary containing a dict called builder_params that provides function call arguments to the build_topology functionmask (
ndarray
) – image file that provides the image segmentation
- Return type
Graph
- Returns
nx.Graph
-