go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/nodes/pkg/types/edge.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package types
     9  
    10  import "github.com/wcharczuk/go-incr"
    11  
    12  // Edge is a represented edge in the graph between
    13  // a source node (the parent) and the target node (the child).
    14  type Edge struct {
    15  	ParentID       incr.Identifier `json:"parent_id"`
    16  	ChildID        incr.Identifier `json:"child_id"`
    17  	ChildInputName string          `json:"child_input_name"`
    18  }