IMP  2.4.0
The Integrative Modeling Platform
Public Member Functions | List of all members
IMP::kernel::PythonDirectedGraph Class Reference

#include <IMP/kernel/python_only.h>

Detailed Description

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.

Note
This class is only available in Python.

Definition at line 31 of file kernel/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...
 

Member Function Documentation

void IMP::kernel::PythonDirectedGraph::show ( std::ostream &  out = std::cout) const

Show the graph in the graphviz format.

Note
The vertices are not output in order, but have their indices shown.

The documentation for this class was generated from the following file: