graph#
Classes#
Custom reimplementation of NodeViwer use to solve certain visual bugs. |
|
NodeGraphQt object for building/managing Spark models. |
Module Contents#
- class graph.SparkNodeViewer(parent=None)#
Bases:
NodeGraphQt.widgets.viewer.NodeViewerCustom reimplementation of NodeViwer use to solve certain visual bugs.
- mousePressEvent(event)#
- class graph.SparkNodeGraph(parent=None, **kwargs)#
Bases:
NodeGraphQt.NodeGraphNodeGraphQt object for building/managing Spark models.
- broadcast_message#
- stateChanged#
- create_node(node_type, name=None, selected=True, color=None, text_color=None, pos=None, push_undo=True)#
- Return type:
spark.graph_editor.models.nodes.AbstractNode
- delete_node(node, push_undo=True)#
- Return type:
None
- build_raw_graph()#
- Return type:
networkx.DiGraph
- get_nodes_by_map()#
- Return type:
Tuple[List[spark.graph_editor.models.nodes.AbstractNode], List[spark.graph_editor.models.nodes.AbstractNode], List[spark.graph_editor.models.nodes.AbstractNode]]
- load_from_model(config)#
- Parameters:
config (spark.nn.brain.BrainConfig)
- validate_graph()#
Simple graph validation.
Ensures that graph has a single connected component and at least one source and one sink is present in the model.
- Return type:
- build_brain_config()#
Build the model from the graph state.
- Return type: