Latest commit e8f7797 Jan 19, 2014 @jacomyal sigma.plugins.neighborhood works
And the example neighborhood-plugin.html as well.

README.md

sigma.plugins.neighborhood

Plugin developed by Alexis Jacomy.


This plugin provides a method to retrieve the neighborhood of a node. Basically, it loads a graph and stores it in a headless sigma.classes.graph instance, that you can query to retrieve neighborhoods.

It is useful for people who want to provide a neighborhoods navigation inside a big graph instead of just displaying it, and without having to deploy an API or the list of every neighborhoods. But please note that this plugin is here as an example of what you can do with the graph model, and do not hesitate to try customizing your navigation through graphs.

This plugin also adds to the graph model a method called "neighborhood". Check the code for more information.

Here is how to use it:

var db = new sigma.plugins.neighborhoods();
db.load('path/to/my/graph.json', function() {
  var nodeId = 'anyNodeID';
  mySigmaInstance
    .read(db.neighborhood(nodeId))
    .refresh();
});