IMP logo
IMP Reference Guide  2.6.1
The Integrative Modeling Platform
IMP::PythonDirectedGraph Class Reference

#include <IMP/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 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::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: