12 January 2012
We’re happy to announce a new tool for the community today: the Gephi Plugins Bootcamp. The bootcamp is a large set of plug-in examples to guide developers create Gephi plugins easily.
Gephi’s vision focuses on the platform and we want developers to be creative and successful. Gephi is built in a way it can be easily extended with plug-ins (layout, filters, io, preview, …) but it’s not always easy to know where to start. The bootcamp addresses this need and provide the environment and the examples to get started.
Want to create a new layout? The Grid Layout example shows how to read the graph and to change coordinates. A new filter? A new exporter? Check out the JPGExporter or the SQLite exporter examples. Below is the complete list of examples and we’ll add more soon upon requests.
Checkout the code on GitHub.
The README file contains the instructions to get the code and to run the examples.
Place all nodes in a simple grid. Users can configure the size of the area and the speed.
|Sorted Grid Layout
Same example as Grid Layout but users can sort nodes using an attribute column.
|Transform to Undirected
Edge filter to remove mutual edges in a directed graph.
Keep the top K nodes using an attribute column.
|Remove Edge Crossing
Example of a complex filter implementation which removes edges until no crossing occurs.
|Find with autocomplete
Tool with a autocomplete text field to find any node based on labels and zoom by it.
Listen to mouse clicks and adds nodes. Also adds edges if selecting other nodes.
Vectorial export to the JPG image format. Contains a settings panel to set the width and height.
|SQLite Database Export
Current graph export to a SQLite Database file. A new sub-menu is added in the Export menu and an example of a custom exporter is shown.
|Highlight Mutual Edges
Colors differently mutual edges. Overwrites and extends the default edge renderer.
Adds a new renderer for node items which draws a glow effect around nodes.
Extends the default node builder by reordering the node items by size or any number columns. Also shows how to create complex Preview UI.
|Matrix Market File Importer
File importer for the Matrix Market format. Large set of matrix file examples on Yifan Hu’s gallery.
Example of a statistics result at the global level. Simply counts the number of self-loop edges in the graph.
|Average Euclidean Distance
Example of a per-node calculation. For a given node it calculates the average distance to others.
Simple action which displays a message and a dialog.
|Remove self loops
Action which accesses the graph and removes self-loops, if any.
|Using Progress and Cancel
Action which creates a long task and executes it with progress and cancel support.
Execute at startup
|When UI is ready
Do something when the UI finished loading.
|Workspace select events
Do something when a workspace is selected.
Set up the nodes’ initial position always the same. It calculates a hash with all nodes so the X/Y position is randomized always in the same way.
Example of a new panel plugin set up at the layout position.
If you have any questions please send an email to the gephi-plugins [at] lists.gephi.org mailing list or stop by on the forum.