Previous topic

Community Detection in Graphs

This Page

Stanford Large Network Dataset Collection

The classes in this module provide access to the Stanford Large Network Dataset Collection, which is maintained by Jure Leskovec.

class Orange.network.snap.SNAP

A collection of methods to access the information about networks in the Stanford Large Network Dataset Collection.

network_list

A list of networks on the Stanford Large Network Dataset Collection web site. Each list item is an instance of the Orange.network.snap.NetworkInfo class.

get_network(id)

Find and return the network by name. If no network is found, return None. Call get_network_list before calling this method to populate the network_list attribute.

Parameters:id (string) – a name of the network in SNAP collection
get_network_list(done_callback=None, progress_callback=None)

Read the networks from the SNAP web site and populate the n etwork_list attribute. If done_callback is set, an asynchronous HTTP request is made to the SNAP web site. If the done_callback is left None, the HTTP request made is synchronous and the network_list is returned.

Parameters:
  • done_callback (function(bool)) – a callback method called when the network info is downloaded
  • progress_callback (function(done, total)) – a callback method to update a progress bar
class Orange.network.snap.NetworkInfo(name='', link='', type='', nodes='', edges='', repository='', description='')

The NetworkInfo class provides information about a network on the SNAP web site.

name

The name of the network.

The url address of the network file.

type

Network type (directed, undirected).

nodes

Number of nodes in the network.

edges

Number of edges in the network.

repository

The repository name (Social networks, Communication networks, ...).

description

Detailed description of the network.

read(progress_callback=None)

Read and return the network from file. Download the network to the Orange home first if it was not jet downloaded.

Parameters:progress_callback (function(numblocks, blocksize, filesize)) – a callback method to update a progress bar