IMP Reference Guide
2.12.0
The Integrative Modeling Platform
|
#include <IMP/python_only.h>
The boost graphs used on the C++ side in IMP
cannot easily be exported to python. Instead we provide a simple graph wrapper and a set of helper functions.
Each node of the graph has an associated vertex name, the exact type of which depends on the graph.
Definition at line 31 of file python_only.h.
Public Member Functions | |
void | add_edge (VertexDescriptor, VertexDescriptor) |
VertexDescriptor | add_vertex (VertexName) |
VertexDescriptors | get_in_neighbors (VertexDescriptor) const |
VertexDescriptors | get_out_neighbors (VertexDescriptor) const |
VertexName | get_vertex_name (VertexDescriptor v) const |
Vertices | get_vertices () const |
void | remove_vertex (VertexDescriptor) |
void | show (std::ostream &out=std::cout) const |
Show the graph in the graphviz format. More... | |
void IMP::PythonDirectedGraph::show | ( | std::ostream & | out = std::cout | ) | const |
Show the graph in the graphviz format.