{"action":"opened","issue":{"url":"https://api.github.com/repos/nassarhuda/MatrixNetworks.jl/issues/1","labels_url":"https://api.github.com/repos/nassarhuda/MatrixNetworks.jl/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nassarhuda/MatrixNetworks.jl/issues/1/comments","events_url":"https://api.github.com/repos/nassarhuda/MatrixNetworks.jl/issues/1/events","html_url":"https://github.com/nassarhuda/MatrixNetworks.jl/issues/1","id":90958015,"number":1,"title":"Add load/example helper","user":{"login":"dgleich","id":33995,"avatar_url":"https://avatars.githubusercontent.com/u/33995?v=3","gravatar_id":"","url":"https://api.github.com/users/dgleich","html_url":"https://github.com/dgleich","followers_url":"https://api.github.com/users/dgleich/followers","following_url":"https://api.github.com/users/dgleich/following{/other_user}","gists_url":"https://api.github.com/users/dgleich/gists{/gist_id}","starred_url":"https://api.github.com/users/dgleich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgleich/subscriptions","organizations_url":"https://api.github.com/users/dgleich/orgs","repos_url":"https://api.github.com/users/dgleich/repos","events_url":"https://api.github.com/users/dgleich/events{/privacy}","received_events_url":"https://api.github.com/users/dgleich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-25T13:02:44Z","updated_at":"2015-06-25T13:02:44Z","closed_at":null,"body":"It'd be nice to have a helper function to load data:\r\n\r\n    A = load_matrix_network_graph(\"clique-10\")\r\n    (A,meta) = load_matrix_network_data(\"clique-10\") # load additional metadata\r\n    matrix_network_datasets() # Provide a list of datasets\r\n\r\nThe implementation of load_matrix_network_graph would just be really simple:\r\n\r\n~~~~\r\nfunction load_matrix_network_graph(name::AbstractString)\r\n\r\n   basename = joinpath(dirname(@__FILE__), \"..\", \"data\", name)\r\n    \r\n    smatname = joinpath(basename, string(dataset_name, \".smat\"))\r\n    if isfile(rdaname)\r\n        return readSMAT(read_rda(rdaname)[dataset_name])\r\n    else\r\n        error(@sprintf \"The example datafile '%s' does not seem to exist where it should\\n\" name)\r\n    end\r\n\r\nend\r\n~~~~\r\n\r\nSee https://github.com/johnmyleswhite/RDatasets.jl for more examples"}}