mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-05 03:55:58 +01:00
Network.toString(): Print edges, not reverse edges
This commit is contained in:
parent
ffae298142
commit
8d18fc9775
1 changed files with 5 additions and 1 deletions
|
@ -113,7 +113,11 @@ public class Network {
|
|||
|
||||
StringBuilder sb = new StringBuilder("Network with " + getNodes().size() + " nodes, " + edgeNum + " edges:\n");
|
||||
for (OpenPgpFingerprint issuer : getNodes().keySet()) {
|
||||
for (CertificationSet edge : getReverseEdges().get(issuer)) {
|
||||
List<CertificationSet> edges = getEdges().get(issuer);
|
||||
if (edges == null) {
|
||||
continue;
|
||||
}
|
||||
for (CertificationSet edge : edges) {
|
||||
sb.append(edge);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue