Skip to content

Instantly share code, notes, and snippets.

@basilesimon
Created June 13, 2014 12:42
Show Gist options
  • Save basilesimon/ba34295482761d983b39 to your computer and use it in GitHub Desktop.
Save basilesimon/ba34295482761d983b39 to your computer and use it in GitHub Desktop.
What I need
{
"occurrences" : [
{
"label" : "one",
"thing" : "url_string",
"occurrence": 100
},{
"label" : "linkedWithOne",
"thing" : "url_string",
"occurrence" : 90
},{
"label" : "alsoLinkedWithOne",
"thing" : "url_string",
"occurrence" : 80
},{
"label" : "two",
"thing" : "url_string",
"occurrence" : 200
},{
"label" : "linkedWithTwo",
"thing" : "url_string",
"occurrence" : 60
},{
"label" : "alsoLinkedWithTwo",
"thing" : "url_string",
"occurrence" : 200
},{
"label" : "identicalAsLinkedWithOne",
"thing" : "url_string",
"occurrence" : 30
}
],
"links" : [
{ "source" : 0, "target" : 1, "weight" : 90},
{ "source" : 0, "target" : 2, "weight" : 80},
{ "source" : 3, "target" : 4, "weight" : 60},
{ "source" : 3, "target" : 5, "weight" : 200},
{ "source" : 3, "target" : 1, "weight" : 30},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment