New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge from label is always null string "" #5
Comments
Hello, |
https://gist.github.com/rjurney/726433d4a36daa7cc17d That file loaded with GDF::load() reproduces the issue. |
Thanks, I can confirm the bug, I’ll work on it. |
Thanks, also I can't build the gem :( Russells-MacBook-Pro:Graphs.rb rjurney$ gem cert --add <(curl -Ls https://gist.github.com/bfontaine/5233818/raw/gem-public-key.pem) Russells-MacBook-Pro:Graphs.rb rjurney$ gem build graphs.gemspec |
I fixed the issue and released the v0.2.0. Regarding the building issue I guess you’d have to sign with your own key but I’m not sure. |
Now I get this issue when parsing a GDF file: jruby-1.7.4 :005 > g = GDF::load('../data/BigHadoopPartner.gdf') Line 1-2 looks like: nodedef> name VARCHAR,label VARCHAR,width DOUBLE,height DOUBLE,x DOUBLE,y DOUBLE,color VARCHAR,group INTEGER,PageRank DOUBLE default 0.0,Modularity Class INTEGER default 0 |
Actually, this line is messing it up: LINE: Securboration,,","Securboration,",1.0017138,1.0017138,868.6553,-414.62808,'30,229,205',1,1.4695786844141188E-4,4 |
You have an unclosed quote here:
The parser thinks you open a quote for a field but it’s never closed, hence the error. Edit: in fact, this part is strange: |
Thanks, yeah. I have many corrupted lines. I must clean Gephi's output before loading it. |
{
"edges": [
{
"": "AmazonWebServices",
"weight": 1.0,
"directed": true
},
{
"": "Cloudera",
"weight": 1.0,
"directed": true
},
{
"": "Mapr",
"weight": 1.0,
"directed": true
},
{
"": "Hortonworks",
"weight": 1.0,
"directed": true
},
{
"": "At&T",
"weight": 2.0,
"directed": true
},
{
"": "HewlattPackard",
"weight": 1.0,
"directed": true
},
{
"": "Google",
"weight": 1.0,
"directed": true
},
{
"": "Polycom",
"weight": 1.0,
"directed": true
},
{
"": "Ibm",
"weight": 1.0,
"directed": true
},
...
]
}
The text was updated successfully, but these errors were encountered: