Skip to content

Commit

Permalink
refactor the format to_dot.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
peter0627ustc committed Dec 14, 2023
1 parent 0f6c507 commit c347b76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/backend/to_dot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ end

function getname(properties,leafidx)
if properties isa BareGreenId
lfname = "G$leafidx"
lfname = "<<i>G</i><sub>$leafidx</sub>>"
elseif properties isa BareInteractionId
lfname = "V$leafidx"
lfname = "<<i>V</i><sub>$leafidx</sub>>"
elseif typeof(properties) == FeynmanProperties && properties.diagtype == ComputationalGraphs.Propagator
lfname = "G$leafidx"
lfname = "<<i>G</i><sub>$leafidx</sub>>"
elseif typeof(properties) == FeynmanProperties && properties.diagtype == ComputationalGraphs.Interaction
lfname = "V$leafidx"
lfname = "<<i>V</i><sub>$leafidx</sub>>"
else
lfname = "L$leafidx"
lfname = "<L<sub>$leafidx</sub>>"
end
return lfname
end
Expand Down

0 comments on commit c347b76

Please sign in to comment.