/** * Returns the type of graph representing * the object. * * @return the type of graph representing the object (label index as key) */ public Map<Integer,Integer> graphType() { Map<Integer,Integer> result; result = new HashMap<Integer,Integer>(); if (getClassifier() != null) { if (getClassifier() instanceof Drawable) { result.put(0, ((Drawable) getClassifier()).graphType()); } } return result; }
/** * Returns the type of graph representing * the object. * * @return the type of graph representing the object (label index as key) */ public Map<Integer,Integer> graphType() { Map<Integer,Integer> result; result = new HashMap<Integer,Integer>(); if (getClassifier() != null) { if (getClassifier() instanceof Drawable) { result.put(0, ((Drawable) getClassifier()).graphType()); } } return result; }
/** * Returns a string that describes a graph representing * the object. The string should be in XMLBIF ver. * 0.3 format if the graph is a BayesNet, otherwise * it should be in dotty format. * * @return the graph described by a string (label index as key) * @throws Exception if the graph can't be computed */ public Map<Integer,String> graph() throws Exception { Map<Integer,String> result; result = new HashMap<Integer,String>(); if (getClassifier() != null) { if (getClassifier() instanceof Drawable) { result.put(0, ((Drawable) getClassifier()).graph()); } } return result; }
/** * Returns a string that describes a graph representing * the object. The string should be in XMLBIF ver. * 0.3 format if the graph is a BayesNet, otherwise * it should be in dotty format. * * @return the graph described by a string (label index as key) * @throws Exception if the graph can't be computed */ public Map<Integer,String> graph() throws Exception { Map<Integer,String> result; result = new HashMap<Integer,String>(); if (getClassifier() != null) { if (getClassifier() instanceof Drawable) { result.put(0, ((Drawable) getClassifier()).graph()); } } return result; }