/** * 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. * * 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(); * > }); */ export default function extend(sigma: any): void;