1
0
Fork 0
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:
Paul Schaub 2023-06-25 14:09:39 +02:00
parent ffae298142
commit 8d18fc9775
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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);
}
}