//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected void removeDependencyEdge(org.maltparser.core.syntaxgraph.node.Node head, org.maltparser.core.syntaxgraph.node.Node dependent) throws org.maltparser.core.exception.MaltChainedException protected internal virtual void removeDependencyEdge(Node.Node head, Node.Node dependent) { if (head == null || dependent == null) { throw new SyntaxGraphException("Head or dependent node is missing."); } else if (!dependent.Root) { IEnumerator <Edge.Edge> ie = dependent.IncomingEdgeIterator; while (ie.MoveNext()) { Edge.Edge e = ie.Current; if (e.Source == head) { graphEdges.remove(e); //JAVA TO C# CONVERTER TODO TASK: .NET enumerators are read-only: ie.remove(); edgePool.checkIn(e); } } } else { throw new SyntaxGraphException("Head node is not a root node or a terminal node."); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void removePhraseStructureEdge(org.maltparser.core.syntaxgraph.node.PhraseStructureNode parent, org.maltparser.core.syntaxgraph.node.PhraseStructureNode child) throws org.maltparser.core.exception.MaltChainedException public virtual void removePhraseStructureEdge(PhraseStructureNode parent, PhraseStructureNode child) { if (parent == null || child == null) { throw new MaltChainedException("Parent or child node is missing."); } else if (parent is NonTerminalNode && !child.Root) { foreach (Edge.Edge e in graphEdges) { if (e.Source == parent && e.Target == child) { e.clear(); graphEdges.remove(e); if (e is GraphEdge) { edgePool.checkIn(e); } } } } else { throw new SyntaxGraphException("Head node is not a root node or a terminal node."); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void checkInLabelSet(LabelSet labelSet) throws org.maltparser.core.exception.MaltChainedException public virtual void CheckInLabelSet(LabelSet labelSet) { labelSetPool.checkIn(labelSet); }