有向圖

`public class DirectedGraph`
`extends Object```` ```

概括

公共構造函數

`DirectedGraph ()`

公共方法

`void` `addEdge (V from, V to)`

`void` `addVertice (V vertex)`

`boolean` `contains (V vertex)`

`boolean` `isDag ()`

`void` `removeEdge (V from, V to)`

`String` `toString ()`

公共構造函數

有向圖

`public DirectedGraph ()`

公共方法

添加邊

```public void addEdge (V from,
V to)```

`from` `V`

`to` `V`

新增頂點

`public void addVertice (V vertex)`

`vertex` `V`

包含

`public boolean contains (V vertex)`

`vertex` `V`

`boolean`

是達格

`public boolean isDag ()`

`boolean`

移除邊緣

```public void removeEdge (V from,
V to)```

`from` `V`

`to` `V`

`IllegalArgumentException`如果任一頂點不存在。

到字串

`public String toString ()`

`String`

[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"缺少我需要的資訊" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"過於複雜/步驟過多" },{ "type": "thumb-down", "id": "outOfDate", "label":"過時" },{ "type": "thumb-down", "id": "translationIssue", "label":"翻譯問題" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"示例/程式碼問題" },{ "type": "thumb-down", "id": "otherDown", "label":"其他" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"容易理解" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"確實解決了我的問題" },{ "type": "thumb-up", "id": "otherUp", "label":"其他" }]