Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
node.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
(* Copyright (C) 2019, Francois Berenger Yamanishi laboratory, Department of Bioscience and Bioinformatics, Faculty of Computer Science and Systems Engineering, Kyushu Institute of Technology, 680-4 Kawazu, Iizuka, Fukuoka, 820-8502, Japan. *) module IntSet = BatSet.Int type t = { typ: PiEltHA.t ; (* atom type *) succs: IntSet.t } (* indexes of its direct successors in the molecular graph (it is bonded to them) *) let create typ succs = { typ; succs } let dummy = create PiEltHA.dummy IntSet.empty let add_succ (n: t) (succ: int): t = create n.typ (IntSet.add succ n.succs) let get_succs (n: t): IntSet.t = n.succs let get_typ (n: t): PiEltHA.t = n.typ