Don't show self loops

This commit is contained in:
Peter Stuifzand 2020-06-17 20:34:18 +02:00
parent a28f634ece
commit 7f7cd71a17

View File

@ -516,6 +516,9 @@ func (h *graphHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if toID, e := nodeMap[key]; e {
for _, item := range references {
if fromID, e := nodeMap[item.Name]; e {
if fromID == toID {
continue
}
edge := Edge{
From: fromID,
To: toID,