Description

Given a graph with a numeric attribute on its nodes, sort the node of the graph by the provided numeric attribute, and return the graph with only the top N nodes. Any edges connected to removed nodes will be removed as well.

Parameters
Applications

Can be used for a variety of purposes, for instance if we want to only keep the top 100 most populous cities in a graph of U.S. cities.

Links
See Also