booldog.io.igraph
Function to transform booldog:Network to DiGraph
Attributes
Functions
|
Export a BoolDog Boolean model to an igraph graph object. |
Module Contents
- booldog.io.igraph._IGRAPH_AVAILABLE = True
- booldog.io.igraph.logger
- booldog.io.igraph.booldog2igraph(model, as_logic_circuit=True)
Export a BoolDog Boolean model to an igraph graph object.
- Parameters:
model (booldog:BoolDogModel) – A BoolDog object representing a Boolean network.
as_logic_circuit (bool) – If True, the graph is exported as a logic circuit (Boolean rules are represented as “logical” nodes (and, or, not) and edges. Otherwise, it is exported as a directed interaction graph. Default is False.
- Returns:
graph – A igraph.Graph object with the same nodes as the input network. If as_logic_circuit is True, Boolean rules are represented as “logical” nodes (and, or, not) and edges.
- Return type:
igraph.Graph
Notes
See also pyboolnet.interaction_graphs.primes2igraph.
Implemented via conversion to Networkx DiGraph, then to igraph Graph, to reuse pyboolet function and logic circuits code.