40 lines
950 B
Markdown
40 lines
950 B
Markdown
[@antv/graphlib](../README.md) / [Exports](../modules.md) / generate
|
|||
|
|
|
||
|
|
# Namespace: generate
|
||
|
|
|
||
|
|
## Table of contents
|
||
|
|
|
||
|
|
### Functions
|
||
|
|
|
||
|
|
- [getGraphComplement](generate.md#getgraphcomplement)
|
||
|
|
|
||
|
|
## Functions
|
||
|
|
|
||
|
|
### getGraphComplement
|
||
|
|
|
||
|
|
▸ **getGraphComplement**<`NodeIDType`, `EdgeType`\>(`originGraph`): ``null`` \| [`Graph`](../classes/Graph.md)<`NodeIDType`, `any`, `EdgeType`, `any`\>
|
||
|
|
|
||
|
|
**`description`** Get the graph's complement
|
||
|
|
|
||
|
|
**`description.zh-cn`** 获取图的补图
|
||
|
|
|
||
|
|
#### Type parameters
|
||
|
|
|
||
|
|
| Name | Type |
|
||
|
|
| :------ | :------ |
|
||
|
|
| `NodeIDType` | `any` |
|
||
|
|
| `EdgeType` | `any` |
|
||
|
|
|
||
|
|
#### Parameters
|
||
|
|
|
||
|
|
| Name | Type |
|
||
|
|
| :------ | :------ |
|
||
|
|
| `originGraph` | [`Graph`](../classes/Graph.md)<`NodeIDType`, `any`, `EdgeType`, `any`\> |
|
||
|
|
|
||
|
|
#### Returns
|
||
|
|
|
||
|
|
``null`` \| [`Graph`](../classes/Graph.md)<`NodeIDType`, `any`, `EdgeType`, `any`\>
|
||
|
|
|
||
|
|
#### Defined in
|
||
|
|
|
||
|
|
[generate/compelement.ts:8](https://github.com/antvis/graphlib/blob/7513e82/src/generate/compelement.ts#L8)
|