Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/digraphs/gap/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 27.8.2025 mit Größe 1 kB image not shown  

Quelle  labels.gd   Sprache: unbekannt

 
#############################################################################
##
##  labels.gd
##  Copyright (C) 2019                                   James D. Mitchell
##
##  Licensing information can be found in the README file of this package.
##
#############################################################################
##

##  Vertex labels

#  Get vertex labels
DeclareOperation("DigraphVertexLabel", [IsDigraph, IsPosInt]);
DeclareOperation("DigraphVertexLabels", [IsDigraph]);
DeclareOperation("HaveVertexLabelsBeenAssigned", [IsDigraph]);

#  Set vertex labels
DeclareOperation("SetDigraphVertexLabel", [IsDigraph, IsPosInt, IsObject]);
DeclareOperation("SetDigraphVertexLabels", [IsDigraph, IsList]);

#  Unset vertex labels
#  TODO document these two operations
DeclareOperation("RemoveDigraphVertexLabel", [IsDigraph, IsPosInt]);
DeclareOperation("ClearDigraphVertexLabels", [IsDigraph]);

##  Edge labels

#  Get edge labels
DeclareOperation("DigraphEdgeLabel", [IsDigraph, IsPosInt, IsPosInt]);
DeclareOperation("DigraphEdgeLabels", [IsDigraph]);
DeclareOperation("DigraphEdgeLabelsNC", [IsDigraph]);
DeclareOperation("HaveEdgeLabelsBeenAssigned", [IsDigraph]);

#  Set edge labels
DeclareOperation("SetDigraphEdgeLabel",
                 [IsDigraph, IsPosInt, IsPosInt, IsObject]);
DeclareOperation("SetDigraphEdgeLabels", [IsDigraph, IsFunction]);
DeclareOperation("SetDigraphEdgeLabels", [IsDigraph, IsList]);
DeclareOperation("SetDigraphEdgeLabelsNC", [IsDigraph, IsList]);

#  Unset edge labels
#  TODO document these two operations
DeclareOperation("RemoveDigraphEdgeLabel", [IsDigraph, IsPosInt, IsPosInt]);
DeclareOperation("ClearDigraphEdgeLabels", [IsDigraph]);

[ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ]