Metadata¶
Functions to modify the metadata of graphs, their edges, and their nodes.
-
pybel.struct.mutation.metadata.
strip_annotations
(graph)[source]¶ Strip all the annotations from a BEL graph.
- Parameters
graph (
BELGraph
) – A BEL graph- Return type
-
pybel.struct.mutation.metadata.
add_annotation_value
(graph, annotation, value, strict=True)[source]¶ Add the given annotation/value pair to all qualified edges.