1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 04:17:59 +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 0ee913d59a
commit e9676160b8
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);
}
}