{
for (Entry<String, Map<Integer, Connection>> entry : requestNode.getAllOutputs().entrySet())
{
for (Entry<Integer, Connection> connections : entry.getValue().entrySet())
{
Connection connection = connections.getValue();
if (parentOutputs.contains(connection))
{
continue;
}
for (RequestNodeInput target: connection.getTargets())
{
dot.append(mInstanceNames.get(connection.getSource()));
dot.append(":");
dot.append("out_");
dot.append(connection.getSourceOutputName());
dot.append("_");
dot.append(connection.getSourceOutputIndex());
dot.append(" -> ");
dot.append(mInstanceNames.get(target.getRequestNode()));
dot.append(":");
dot.append("in_");
dot.append(target.getName());
dot.append("_");
dot.append(target.getIndex());
dot.append(";\n");
}
if (connection.getTargets().size() == 0)
{
// we have an unconnected output
String nodename = "Connection" + (++mCounter);
dot.append(nodename);
dot.append("[shape=point];\n");
dot.append(mInstanceNames.get(connection.getSource()));
dot.append(":");
dot.append("out_");
dot.append(connection.getSourceOutputName());
dot.append("_");
dot.append(connection.getSourceOutputIndex());
dot.append(" -> ");
dot.append(nodename);
dot.append(";\n");
}
}