mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-24 11:57:59 +01:00
Network.toString(): Print edges, not reverse edges
This commit is contained in:
parent
0ee913d59a
commit
e9676160b8
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