alibaba / alibaba/GraphScope

Is there any way with【graph.schema】return result draw graph on jupyter

Open
#2,197 1 comment 1 reaction 3 assignees Claimed by @lidongze0629 View on GitHub
component:python enhancement priority:low
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Describe the solution you'd like**
when load graph from file.
```
print(graph.schema)

the result on jupyter:

oid_type: LONG
vid_type: ULONG
type: VERTEX
Label: paper
Properties: Property(0, feat_0, DOUBLE), Property(1, feat_1, DOUBLE), Property(2, feat_2, DOUBLE), Property(3, feat_3, DOUBLE), Property(4, feat_4, DOUBLE), Property(5, feat_5, DOUBLE), Property(6, feat_6, DOUBLE), Property(7, feat_7, DOUBLE), Property(8, feat_8, DOUBLE), Property(9, feat_9, DOUBLE), Property(10, feat_10, DOUBLE), Property(11, feat_11, DOUBLE), Property(12, feat_12, DOUBLE), Property(13, feat_13, DOUBLE), Property(14, feat_14, DOUBLE), Property(15, feat_15, DOUBLE), Property(16, feat_16, DOUBLE), Property(17, feat_17, DOUBLE), Property(18, feat_18, DOUBLE), Property(19, feat_19, DOUBLE), Property(20, feat_20, DOUBLE), Property(21, feat_21, DOUBLE), Property(22, feat_22, DOUBLE), Property(23, feat_23, DOUBLE), Property(24, feat_24, DOUBLE), Property(25, feat_25, DOUBLE), Property(26, feat_26, DOUBLE), Property(27, feat_27, DOUBLE), Property(28, feat_28, DOUBLE), Property(29, feat_29, DOUBLE), Property(30, feat_30, DOUBLE), Property(31, feat_31, DOUBLE), Property(32, feat_32, DOUBLE), Property(33, feat_33, DOUBLE), Property(34, feat_34, DOUBLE), Property(35, feat_35, DOUBLE), Property(36, feat_36, DOUBLE), Property(37, feat_37, DOUBLE), Property(38, feat_38, DOUBLE), Property(39, feat_39, DOUBLE), Property(40, feat_40, DOUBLE), Property(41, feat_41, DOUBLE), Property(42, feat_42, DOUBLE), Property(43, feat_43, DOUBLE), Property(44, feat_44, DOUBLE), Property(45, feat_45, DOUBLE), Property(46, feat_46, DOUBLE), Property(47, feat_47, DOUBLE), Property(48, feat_48, DOUBLE), Property(49, feat_49, DOUBLE), Property(50, feat_50, DOUBLE), Property(51, feat_51, DOUBLE), Property(52, feat_52, DOUBLE), Property(53, feat_53, DOUBLE), Property(54, feat_54, DOUBLE), Property(55, feat_55, DOUBLE), Property(56, feat_56, DOUBLE), Property(57, feat_57, DOUBLE), Property(58, feat_58, DOUBLE), Property(59, feat_59, DOUBLE), Property(60, feat_60, DOUBLE), Property(61, feat_61, DOUBLE), Property(62, feat_62, DOUBLE), Property(63, feat_63, DOUBLE), Property(64, feat_64, DOUBLE), Property(65, feat_65, DOUBLE), Property(66, feat_66, DOUBLE), Property(67, feat_67, DOUBLE), Property(68, feat_68, DOUBLE), Property(69, feat_69, DOUBLE), Property(70, feat_70, DOUBLE), Property(71, feat_71, DOUBLE), Property(72, feat_72, DOUBLE), Property(73, feat_73, DOUBLE), Property(74, feat_74, DOUBLE), Property(75, feat_75, DOUBLE), Property(76, feat_76, DOUBLE), Property(77, feat_77, DOUBLE), Property(78, feat_78, DOUBLE), Property(79, feat_79, DOUBLE), Property(80, feat_80, DOUBLE), Property(81, feat_81, DOUBLE), Property(82, feat_82, DOUBLE), Property(83, feat_83, DOUBLE), Property(84, feat_84, DOUBLE), Property(85, feat_85, DOUBLE), Property(86, feat_86, DOUBLE), Property(87, feat_87, DOUBLE), Property(88, feat_88, DOUBLE), Property(89, feat_89, DOUBLE), Property(90, feat_90, DOUBLE), Property(91, feat_91, DOUBLE), Property(92, feat_92, DOUBLE), Property(93, feat_93, DOUBLE), Property(94, feat_94, DOUBLE), Property(95, feat_95, DOUBLE), Property(96, feat_96, DOUBLE), Property(97, feat_97, DOUBLE), Property(98, feat_98, DOUBLE), Property(99, feat_99, DOUBLE), Property(100, feat_100, DOUBLE), Property(101, feat_101, DOUBLE), Property(102, feat_102, DOUBLE), Property(103, feat_103, DOUBLE), Property(104, feat_104, DOUBLE), Property(105, feat_105, DOUBLE), Property(106, feat_106, DOUBLE), Property(107, feat_107, DOUBLE), Property(108, feat_108, DOUBLE), Property(109, feat_109, DOUBLE), Property(110, feat_110, DOUBLE), Property(111, feat_111, DOUBLE), Property(112, feat_112, DOUBLE), Property(113, feat_113, DOUBLE), Property(114, feat_114, DOUBLE), Property(115, feat_115, DOUBLE), Property(116, feat_116, DOUBLE), Property(117, feat_117, DOUBLE), Property(118, feat_118, DOUBLE), Property(119, feat_119, DOUBLE), Property(120, feat_120, DOUBLE), Property(121, feat_121, DOUBLE), Property(122, feat_122, DOUBLE), Property(123, feat_123, DOUBLE), Property(124, feat_124, DOUBLE), Property(125, feat_125, DOUBLE), Property(126, feat_126, DOUBLE), Property(127, feat_127, DOUBLE), Property(128, year, LONG), Property(129, label, LONG), Property(130, id, LONG)

type: VERTEX
Label: author
Properties: Property(0, id, LONG)

type: VERTEX
Label: institution
Properties: Property(0, id, LONG)

type: VERTEX
Label: field_of_study
Properties: Property(0, id, LONG)

type: EDGE
Label: affiliated
Properties: Property(0, eid, LONG)
Relations: [Relation(source='author', destination='institution')]
type: EDGE
Label: hasTopic
Properties: Property(0, eid, LONG)
Relations: [Relation(source='paper', destination='field_of_study')]
type: EDGE
Label: cites
Properties: Property(0, eid, LONG)
Relations: [Relation(source='paper', destination='paper')]
type: EDGE
Label: writes
Properties: Property(0, eid, LONG)
Relations: [Relation(source='author', destination='paper')]

```
Is there any way with【graph.schema】return result draw graph on jupyter like this picture:

![image](https://user-images.githubusercontent.com/13795366/199679302-34ac827f-0de7-4301-a282-e5af5824fbc2.png)

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.