You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jon Ivmark edited this page Nov 28, 2013
·
2 revisions
A test graph filled with Last.FM data containing social networking, tagging, and music artist listening information is provided. The data was gotten from the GroupLens site and contains around 300K edges and 20K nodes.
The graph loads fairly quickly (around 3 seconds on my Lenovo ThinkPad T420s) and can be used if you want to play around with a graph of decent size.
Below a short example:
// Load the graph
PropertyGraph lastFMGraph = LastFMGraph.importGraph();
NodeId coldPlay = new NodeId(LastFMGraph.ARTIST, "65");
// Get all user tags for ColdPlay
Iterable<Edge> tags =
lastFMGraph.getEdges(coldPlay, LastFMGraph.TAGGED,
EdgeDirection.INCOMING);