Skip to content
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);

Clone this wiki locally