Skip to main content

import

Importing your data in Tulip with Python

Importing Data using python scripting

The boilerplate

First, fire up Tulip, create a new Graph (Ctrl+N or from the menu File->New), open the python scripting component (View->Python Script View).

I personally like to tile the windows (Windows->Tile) so they both use as much space as they can.

The python script view will contain a basic script that creates variables for easy access to the graph's properties, such as nodes size, position color and so on.

GraphML Import

Posted in
A simple GraphML import plugin. Needs some work before being published on the pluginserver.

Importing nodes and edges from CSV files

In this video we will show how to import nodes information from the a first file and how to add edges on imported nodes with second one file.

The two files we will use are coming from the VCAN workshop in Dublin. See this news fom more information on the data : http://tulip.labri.fr/TulipDrupal/?q=node/1251

The first one, called nodes.csv, contains all the information on nodes in particular the node_id column containing the nodes ids used during the edges import process.

GEXF (Gephi graph format) import plugin

This plugin allow to import graphs in Tulip saved in the GEXF file format, proper to Gephi, another Graph visualization software. The plugin is able to import graph structure but also attributes associated to nodes and edges. The visual properties (color, label, size, position) are also parsed. Last but not least, an option allows edges shapes to be curved the same way Gephi does.

Syndicate content