Skip to main content
. 2022 Feb 25;10(3):551. doi: 10.3390/biomedicines10030551
Algorithm A1 Inference algorithm of the cascade graph encoder.
  • 1:

    Input:  Barcode-Like Timelines B; Stride Size s; Kernel Size w; Network Weights θEall; Set of Substructures Rheart, Rvessels, Rothers

  • 2:

    Output:  Sub-graph Chart Diagrams Gheart, Gvessels; Main-graph Chart Diagram Gmain

  • 3:

    i=1

  • 4:

    while(i1)s+wTmax(B)do

  • 5:

            ghearti(B(Rheart);θEheart)=Eheart(K(i,B(Rheart));θEheart)

  • 6:

            gvesselsi(B(Rvessels);θEvessels)=Evessels(K(i,B(Rvessels));θEvessels)

  • 7:

            Gheart⟵ add point ghearti(B(Rheart);θEheart)

  • 8:

            Gvessels⟵ add point gvesselsi(B(Rvessels);θEvessels)

  • 9:

            v=ghearti(B(Rheart);θEheart),gvesselsi(B(Rvessels);θEvessels),Eothers(K(i,B(Rothers));θEothers)

  • 10:

            gmaini(B;θEsub,θEmain)=Emain(v;θEmain)

  • 11:

            Gmain⟵ add point gmaini(B;θEsub,θEmain)

  • 12:

    end while