[Paraview] Catalyst distributed graph example

2017-09-13 Thread Dorier, Matthieu
Hi, I would like to use Catalyst to visualize a distributed directed graph. Each node of the graph is characterized by an id (not necessarily contiguous, as some nodes are added and removed during the execution) and a list of connections (ids of "friends"). The nodes can be assigned coordina

Re: [Paraview] Catalyst distributed graph example

2017-09-13 Thread Andy Bauer
Hi Matthieu, There isn't a Catalyst example for graphs but it shouldn't be too hard to make. I'm not very familiar with the vtkGraph and derived classes but if I were to to try doing that I'd just see how the graph object is generated in some filter that generates one (look in the RequestData() me

Re: [Paraview] Catalyst distributed graph example

2017-09-13 Thread Jeff Baumes
vtkMutableDirectedGraph has an API that is hopefully pretty intuitive with AddVertex, AddEdge, etc. You can also shallow-copy from the mutable graph into a DAG object, which performs a check, if it is important to verify you m