Hello, I wrote a small local cluster coefficient algorithm (#triangles / #possible triangles) and let some nodes not have any neighbors. (Pay no attention to my disregard for handling directed vs. undirected)
This produces
[0.333333 -nan -nan -nan -nan ]
total sum = -2147483648
Where the array are the LCC values (and are correct). I looked through the v0.4 spec for "undefined" and it does not seem to reference this scenario.
There are no warnings generated by the compiler, and I am not using +/- INF
Code (aside : I am bad at git, can you attach a file?)
Hello, I wrote a small local cluster coefficient algorithm (#triangles / #possible triangles) and let some nodes not have any neighbors. (Pay no attention to my disregard for handling directed vs. undirected)
This produces [0.333333 -nan -nan -nan -nan ] total sum = -2147483648
Where the array are the LCC values (and are correct). I looked through the v0.4 spec for "undefined" and it does not seem to reference this scenario.
There are no warnings generated by the compiler, and I am not using +/- INF
Code (aside : I am bad at git, can you attach a file?)