Displaying 1 result from an estimated 1 matches for "getadjacentnod".
Did you mean:
getadjacentnodes
2008 Sep 14
3
Please help me in Converting this from C# to R
...Writed(E, "E");
Writed(P, "P");
foreach (SimpleNode n in graph.Nodes)
{
int id = graph.index[n];
decimal product = 1;
foreach (var item in graph.GetAdjacentNodes(n))
{
int j = graph.index[item];
product *= (1 - B * P[j]);
}
E[id] = product;
}
foreach (SimpleNode n in graph.Nodes)...