search for: nodescount

Displaying 1 result from an estimated 1 matches for "nodescount".

Did you mean: nodes_count
2008 Sep 14
3
Please help me in Converting this from C# to R
Random r = new Random(); DirectedGraph<SimpleNode> graph = GetGraph(); decimal B = 0.1m; decimal D = 0.05m; int nodes = graph.NodesCount; decimal[] E = new decimal[nodes]; decimal[] P = new decimal[nodes]; for (int i = 7; i <= 10; ++i) P[i] = (decimal)r.NextDouble(); for (int t = 0; t < 100; ++t) {...