Network Functions
load_file
network connections.load_file(file: 'PathBuf', append: 'bool' = false)
Arguments
file: 'PathBuf'
=> File to load the network connections fromappend: 'bool' = false
=> Append the connections in the current network
Load the given file into the network
This replaces the current network with the one loaded from the file.
subset
network connections.subset(keep: 'bool' = true)
Arguments
keep: 'bool' = true
=> Keep the selected nodes (false = removes the selected)
Take a subset of network by only including the selected nodes
save_file
network connections.save_file(
file: 'PathBuf',
quote_all: 'bool' = true,
graphviz: 'bool' = false
)
Arguments
file: 'PathBuf'
=> Path to the output filequote_all: 'bool' = true
=> quote all node names; if false, doesn’t quote valid identifier namesgraphviz: 'bool' = false
=> wrap the network into a valid graphviz file
Save the network into the given file
For more control on graphviz file writing use
save_graphviz
from graphviz
plugin instead.