public RemoveEdgeAttribute ( String sourceId, ulong timeId, String edgeId, String attribute ) : void | ||
sourceId | String | |
timeId | ulong | |
edgeId | String | |
attribute | String | |
return | void |
private static void AddEdgeWithLabel(NetStreamSender stream, string sourceId, ref ulong timeId, string name, string nodeFrom, string nodeTo) { if (lastEdge != null) stream.RemoveEdgeAttribute(sourceId, timeId++, lastEdge, "ui.class"); stream.AddEdge(sourceId, timeId++, name, nodeFrom, nodeTo, false); stream.AddEdgeAttribute(sourceId, timeId++, name, "ui.label", name); stream.AddEdgeAttribute(sourceId, timeId++, name, "ui.class", "active"); lastEdge = name; }
private static void AddEdgeWithLabel(NetStreamSender stream, string sourceId, ref ulong timeId, string name, string nodeFrom, string nodeTo) { if (lastEdge != null) { stream.RemoveEdgeAttribute(sourceId, timeId++, lastEdge, "ui.class"); } stream.AddEdge(sourceId, timeId++, name, nodeFrom, nodeTo, false); stream.AddEdgeAttribute(sourceId, timeId++, name, "ui.label", name); stream.AddEdgeAttribute(sourceId, timeId++, name, "ui.class", "active"); lastEdge = name; }
private static void EventsTest() { const string sourceId = "C++_netstream_test"; ulong timeId = 0L; var stream = new NetStreamSender("localhost", 2001); stream.AddNode(sourceId, timeId++, "node0"); stream.AddEdge(sourceId, timeId++, "edge", "node0", "node1", true); stream.AddNodeAttribute(sourceId, timeId++, "node0", "nodeAttribute", 0); stream.ChangeNodeAttribute(sourceId, timeId++, "node0", "nodeAttribute", 0, 1); stream.RemoveNodeAttribute(sourceId, timeId++, "node0", "nodeAttribute"); stream.AddEdgeAttribute(sourceId, timeId++, "edge", "edgeAttribute", 0); stream.ChangeEdgeAttribute(sourceId, timeId++, "edge", "edgeAttribute", 0, 1); stream.RemoveEdgeAttribute(sourceId, timeId++, "edge", "edgeAttribute"); stream.AddGraphAttribute(sourceId, timeId++, "graphAttribute", 0); stream.ChangeGraphAttribute(sourceId, timeId++, "graphAttribute", 0, 1); stream.RemoveGraphAttribute(sourceId, timeId++, "graphAttribute"); stream.StepBegins(sourceId, timeId++, 1.1); stream.RemoveEdge(sourceId, timeId++, "edge"); stream.RemoveNode(sourceId, timeId++, "node0"); stream.GraphClear(sourceId, timeId++); stream.Close(); }
private static void EventsTest() { const string sourceId = "C++_netstream_test"; ulong timeId = 0L; var stream = new NetStreamSender("localhost", 2001); stream.AddNode(sourceId, timeId++, "node0"); stream.AddEdge(sourceId, timeId++, "edge", "node0", "node1", true); stream.AddNodeAttribute(sourceId, timeId++, "node0", "nodeAttribute", 0); stream.ChangeNodeAttribute(sourceId, timeId++, "node0", "nodeAttribute", 0, 1); stream.RemoveNodeAttribute(sourceId, timeId++, "node0", "nodeAttribute"); stream.AddEdgeAttribute(sourceId, timeId++, "edge", "edgeAttribute", 0); stream.ChangeEdgeAttribute(sourceId, timeId++, "edge", "edgeAttribute", 0, 1); stream.RemoveEdgeAttribute(sourceId, timeId++, "edge", "edgeAttribute"); stream.AddGraphAttribute(sourceId, timeId++, "graphAttribute", 0); stream.ChangeGraphAttribute(sourceId, timeId++, "graphAttribute", 0, 1); stream.RemoveGraphAttribute(sourceId, timeId++, "graphAttribute"); stream.StepBegins(sourceId, timeId++, 1.1); stream.RemoveEdge(sourceId, timeId++, "edge"); stream.RemoveNode(sourceId, timeId++, "node0"); stream.GraphClear(sourceId, timeId++); stream.Close(); }