Hướng dẫn css line arrow generator - trình tạo mũi tên dòng css


Tìm hiểu cách tạo mũi tên với CSS.

Show

Mũi tên bên phải:

Mũi tên trái:

Mũi tên lên:

Mũi tên xuống:


Cách tạo mũi tên

Bước 1) Thêm HTML:

Thí dụ

Mũi tên phải: Mũi tên trái: Mũi tên lên: Mũi tên xuống:

Left arrow:


Up arrow:


Down arrow:


Bước 2) Thêm CSS:

Thí dụ

Mũi tên phải: Mũi tên trái: Mũi tên lên: Mũi tên xuống:
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

Bước 2) Thêm CSS:
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.arrow {& nbsp; Biên giới: Đen rắn; & nbsp; Độ rộng biên giới: 0 3px 3px 0; & nbsp; Hiển thị: Inline-Block; & nbsp; Đệm: 3px;}
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.right {& nbsp; biến đổi: xoay (-45deg); & nbsp; -WebKit-Transform: ROTATE (-45DEG);}
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.left {& nbsp; Biến đổi: Xoay (135deg); & nbsp; & nbsp;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.up {& nbsp; Biến đổi: ROTATE (-135DEG); & nbsp; & nbsp;



Tôi đang cố gắng tạo ra một đường ngang thẳng với sự cố ở giữa để hiển thị một mũi tên. Ý tưởng là nội dung được hiển thị trong dòng sẽ cung cấp chi tiết về nội dung được hiển thị phía trên dòng. Đây là những gì dòng sẽ trông như thế nào:

Hướng dẫn css line arrow generator - trình tạo mũi tên dòng css

Tôi đang cố gắng tạo ra điều này với HTML và CSS thuần túy (không có hình ảnh bitmap). Việc sử dụng phông chữ tuyệt vời là chấp nhận được nếu nó kết thúc kết quả đúng. Tôi cần kiểm soát độ dày và màu sắc của dòng. Góc của sự cố không quan trọng (45 và 90 độ trên mẫu hiển thị ở trên). Tôi biết về thủ thuật tam giác CSS này, nhưng tôi không thể nghĩ ra cách áp dụng nó vào kịch bản này.

Hướng dẫn css line arrow generator - trình tạo mũi tên dòng css

web-tiki

94,4K31 Huy hiệu vàng211 Huy hiệu bạc243 Huy hiệu Đồng31 gold badges211 silver badges243 bronze badges

Hỏi ngày 2 tháng 4 năm 2013 lúc 23:51Apr 2, 2013 at 23:51

Ismael Ghalimiismaael GhalimiIsmael Ghalimi

3,4462 Huy hiệu vàng21 Huy hiệu bạc25 Huy hiệu Đồng2 gold badges21 silver badges25 bronze badges

1

Hiệu ứng tốt đẹp này có thể đạt được bằng cách sử dụng các thuộc tính CSS

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
53 và
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
54. Tốt nhất là chơi xung quanh với trình tạo trực tuyến của Simon Højberg tại CSSarrowlease.

Đã trả lời ngày 2 tháng 4 năm 2013 lúc 23:54Apr 2, 2013 at 23:54

Hướng dẫn css line arrow generator - trình tạo mũi tên dòng css

4

Một giải pháp với nền mũi tên trong suốt, cho phép bạn sử dụng nó với mọi nền:

HTML:

CSS:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}

Bản demo trực tiếp: http://jsfiddle.net/85saaphw/ http://jsfiddle.net/85saaphw/

Đã trả lời ngày 9 tháng 2 năm 2016 lúc 9:16Feb 9, 2016 at 9:16

Itayaitayaitaya

Phù hiệu bằng đồng 1971 Silver71 silver badge7 bronze badges

Hướng dẫn css line arrow generator - trình tạo mũi tên dòng css

Bản trình diễn

Giới thiệu

Bảng thông tin

  • Thư viện đồ thị đầy đủ tính năng được viết bằng JS thuần túy
  • Giấy phép nguồn mở cho phép (MIT) cho Thư viện Cytoscape.js Core và tất cả các tiện ích mở rộng của bên thứ nhất
  • Được sử dụng trong các dự án thương mại và các dự án nguồn mở trong sản xuất
  • Được thiết kế cho người dùng đầu tiên, cho cả ứng dụng Frontfaces usecase và nhà phát triển Usecase
  • Tối ưu hóa cao
  • Tương thích với
  • Tất cả các trình duyệt hiện đại
  • Trình duyệt Legacy với hỗ trợ ES5 và Canvas
    • Hỗ trợ ES5 và Canvas là bắt buộc và phát hiện tính năng được sử dụng để cải tiến hiệu suất tùy chọn.
    • Trình duyệt vào khoảng năm 2012 Hỗ trợ ES5 Hoàn toàn: IE10, Chrome 23, Firefox 21, Safari 6 (Caniuse)
    • Các trình duyệt có hỗ trợ ES5 một phần nhưng đầy đủ cũng hoạt động, chẳng hạn như IE9 và Firefox 4.
    • Các tài liệu và ví dụ không được tối ưu hóa cho các trình duyệt cũ, mặc dù chính thư viện là. Một số bản demo có thể không hoạt động trong các trình duyệt cũ để giữ cho mã demo đơn giản.
  • Hệ thống mô -đun
    • Mô -đun ES
    • UMD
      • CommonJS/Node.js
      • Quả cầu
      • AMD/Require.js
  • Người quản lý gói
    • NPM
    • sợi
    • Bower
  • Hỗ trợ ngôn ngữ R thông qua RCYJS
  • Hỗ trợ kết xuất hình ảnh của biểu đồ trên Node.js với Cytosnap
  • Có một bộ thử nghiệm lớn có thể chạy trong trình duyệt hoặc thiết bị đầu cuối
  • Tài liệu bao gồm các ví dụ mã trực tiếp, nhân đôi như một đặc tả yêu cầu tương tác; Biểu đồ ví dụ cũng có thể được sửa đổi tự do trong bảng điều khiển của bạn
  • Hoàn toàn có thể nối tiếp và khó chịu thông qua JSON
  • Sử dụng bố cục cho các nút định vị tự động hoặc thủ công
  • Hỗ trợ các bộ chọn để lọc và truy vấn đồ thị Terse
  • Sử dụng bảng hiệu kiểu để phân tách bản trình bày khỏi dữ liệu theo cách kết xuất bất khả tri
  • Tóm tắt và thống nhất các sự kiện cảm ứng trên đầu mô hình sự kiện quen thuộc
  • Hỗ trợ tích hợp cho các cử chỉ tiêu chuẩn trên cả máy tính để bàn và cảm ứng
  • Chuỗi để thuận tiện
  • Hỗ trợ các mẫu lập trình chức năng
  • Hỗ trợ các hoạt động lý thuyết đặt
  • Bao gồm các thuật toán lý thuyết đồ thị, từ BFS đến PageRank
  • Các yếu tố biểu đồ và chế độ xem có thể hoạt hình
  • Có thể mở rộng hoàn toàn (và tiện ích mở rộng có thể được tự động hóa cho bạn)
  • Duy trì tốt
    • Cadence phát hành bản vá hàng tuần
    • Cadence phát hành tính năng hàng tháng
  • Được liệt kê bởi Zenodo cho DOI phiên bản Per-Phiên bản
  • Được liệt kê bởi các công cụ OMIC

Người sử dụng cytoscape.js

Công nghệ tên tuổi lớn

  • Amazon
  • Quỹ phần mềm Apache
  • Cặp đôi
  • đàn hồi
  • Fujitsu
  • Google
  • Hewlett Packard Enterprise
  • IBM
  • Quỹ Linux
  • Meta
  • Microsoft
  • MongoDB
  • Con rối
  • Mũ đỏ
  • Tencent
  • Uber

Chính quyền

  • DARPA
  • GCHQ
  • NHS
  • NOAA
  • NSA

Tài nguyên nghiên cứu

  • Apid
  • Araqtl
  • Vòm
  • Biocyc
  • Biogrid
  • BIOPLEX
  • cbioportal
  • Đồng thuận
  • DSYSMAP
  • Elsevier
  • Bao gồm
  • Flybase
  • ngân hà
  • Genemania
  • GraphSpace
  • Xen kẽ
  • Metagenomescope
  • NDEX
  • Newt
  • OpenBio
  • Con đường Commons
  • Pinet
  • Plotly (Dash)
  • Quantstack (Jupyter)
  • Cổ phiếu
  • Synbiohub
  • Hiệp hội bản thể gen
  • Wormbase

Nghiên cứu & phi lợi nhuận

  • Đại học Aalto
  • Đại học Albert Ludwig của Freiburg
  • Trung tâm siêu máy tính Barcelona
  • BBC
  • Đại học Ben-Gurion của Negev
  • Phòng thí nghiệm Berkeley
  • Viện rộng
  • Carnegie Mellon
  • Viện Earlham
  • École Polytechnique Fédérale de Lausanne (EPFL)
  • Trung tâm y tế Erasmus
  • Phòng thí nghiệm sinh học phân tử châu Âu (EMBL)
  • Fairplus
  • Học viện Công nghệ Georgia
  • Getty
  • đại học Harvard
  • Hop
  • Viện Y khoa Howard Hughes
  • Phòng thí nghiệm quốc gia Idaho
  • đại học Indiana
  • Inrae
  • Học viện Curie
  • Viện Sinh học Hệ thống
  • Viện nghiên cứu gạo quốc tế
  • Đại học Johns Hopkins
  • Viện nghiên cứu Lerner, Phòng khám Cleveland
  • Đại học Maastricht
  • Học viện Max Plank
  • trường đại học công nghệ Nayang
  • Mạng lưới các nhà phân tích sinh học châu Âu
  • NHS
  • Công viên nghiên cứu Norwich
  • Khoa học và tin học về dữ liệu sức khỏe quan sát (OHDSI)
  • Quyền sở hữu mở
  • Đại học Khoa học và Y tế Oregon
  • Đại học Khoa học Paris et Lettres
  • Đại học bang Pennsylvania
  • Viện nghiên cứu vật liệu nước hoa
  • Viện Sanger
  • Viện tin sinh học quốc gia Tây Ban Nha
  • Sri International
  • Đại học Stanford
  • Nền tảng cho nghiên cứu và công nghệ - Hellas
  • Viện phần mềm khoa học phân tử
  • Đại học Tsinghua
  • Unist
  • Đại học Degli Studi di Milano - Bicocca
  • Đại học Alabama
  • Đại học Barcelona
  • đại học California, Berkeley
  • Đại học California, San Diego
  • Đại học California, San Francisco
  • đại học Cambridge
  • Đại học Khoa học và Công nghệ Điện tử Trung Quốc
  • Đại học Heidelberg
  • Đại học Helsinki
  • Đại học Leipzig
  • Đại học Maryland
  • Trường đại học Toronto
  • Đại học Utah
  • Đại học Vanderbilt
  • Virginia Tech
  • Đại học Wageningen và nghiên cứu
  • Quỹ di tích thế giới

Ứng dụng & Dịch vụ

  • Apache tuổi
  • Ứng dụng
  • Aras
  • Athenz
  • Quan điểm AWS
  • Bicep Azure
  • Bell Media
  • Bluesailcrm
  • Bugbug
  • Nhịp
  • Lưới hỗn loạn
  • Lớp học
  • Cybersift
  • Xi lanh
  • Dendron
  • Dockflow
  • DRONEDEMPLINE
  • Dynalearn
  • Flowchart.fun
  • Foxglove
  • Ganister
  • Diễn đàn CTO toàn cầu
  • Đồ họa
  • Đồ thị
  • Grezi
  • Hackertarget
  • How-4
  • Infotrack
  • Intercax
  • Phiên dịch
  • IPFS & libp2p
  • Jiva.ai
  • JSdelivr
  • Tung hứng
  • Đường dẫn Kausal
  • Kiali
  • Kibana
  • KPN
  • Học tập
  • Machine2Learn
  • Tài chính đa dạng
  • Sao Hoả
  • Nhạc kịch
  • Mạng Weathermap
  • Thánh tích mới
  • NX
  • Obsidian
  • OnePanel
  • Opendialog
  • Panaya
  • Xác định chính xác
  • Nhớ lại
  • Đi lang thang
  • Dấu hiệu
  • Khung SQL
  • Steemit
  • StixView
  • ICSI Haystack Panopticon
  • Bản đồ Kanji
  • Đe dọa kết nối
  • Đe dọa
  • Underlay
  • VAC
  • wanderer.ai
  • Wisecube AI
  • Zubir cho biết biểu đồ kiến ​​thức

Hãy cho chúng tôi biết

Hãy cho chúng tôi biết rằng bạn đã sử dụng cytoscape.js.

Về

Cytoscape.js là một thư viện lý thuyết đồ thị nguồn mở (a.k.a.) được viết bằng JS. Bạn có thể sử dụng cytoscape.js để phân tích đồ thị và trực quan hóa.

Cytoscape.js cho phép bạn dễ dàng hiển thị và thao tác các biểu đồ tương tác phong phú. Vì cytoscape.js cho phép người dùng tương tác với biểu đồ và thư viện cho phép máy khách kết nối với các sự kiện người dùng, cytoscape.js dễ dàng tích hợp vào ứng dụng của bạn, đặc biệt là khi cytoscape.js hỗ trợ cả trình duyệt máy tính để bàn, như Chrome và trình duyệt di động , giống như trên iPad. Cytoscape.js bao gồm tất cả các cử chỉ mà bạn mong đợi ngoài hộp, bao gồm Pinch-to-Zoom, Lựa chọn hộp, Panning, et cetera.

Cytoscape.js cũng có phân tích đồ thị trong tâm trí: Thư viện chứa nhiều chức năng hữu ích trong lý thuyết đồ thị. Bạn có thể sử dụng cytoscape.js không đầu trên Node.js để thực hiện phân tích đồ thị trong thiết bị đầu cuối hoặc trên máy chủ web.

Cytoscape.js là một dự án nguồn mở và bất kỳ ai có thể tự do đóng góp. Để biết thêm thông tin, hãy tham khảo GitHub Readme.

Thư viện được tạo ra tại Trung tâm Donnelly tại Đại học Toronto. Nó là sự kế thừa của Cytoscape Web.

Gói

  • NPM:
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    55
  • Bower:
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    56
  • JSPM:
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    57

Phát hành

  • 3.23
    • 3.23.0
  • 3.22
    • 3.22.1
    • 3.22.0
  • 3.21
    • 3.21.3
    • 3.21.2
    • 3.21.1
    • 3.21.0
  • 3.20
    • 3.20.3
    • 3.20.2
    • 3.20.1
    • 3.20.0
  • 3.19
    • 3.19.1
    • 3.19.0
  • 3.18
    • 3.18.2
    • 3.18.1
    • 3.18.0
  • 3.17
    • 3.17.4
    • 3.17.3
    • 3.17.2
    • 3.17.1
    • 3.17.0
  • 3.16
    • 3.16.5
    • 3.16.4
    • 3.16.3
    • 3.16.2
    • 3.16.1
    • 3.16.0
  • 3.15
    • 3.15.5
    • 3.15.4
    • 3.15.3
    • 3.15.2
    • 3.15.1
    • 3.15.0
  • 3.14
    • 3.14.4
    • 3.14.3
    • 3.14.2
    • 3.14.1
    • 3.14.0
  • 3.13
    • 3.13.3
    • 3.13.2
    • 3.13.1
    • 3.13.0
  • 3.12
    • 3.12.3
    • 3.12.2
    • 3.12.1
    • 3.12.0
  • 3.11
    • 3.11.2
    • 3.11.1
    • 3.11.0
  • 3.10
    • 3.10.2
    • 3.10.1
    • 3.10.0
  • 3.9
    • 3.9.4
    • 3.9.3
    • 3.9.2
    • 3.9.1
    • 3.9.0
  • 3.8
    • 3.8.5
    • 3.8.4
    • 3.8.3
    • 3.8.2
    • 3.8.1
    • 3.8.0
  • 3.7
    • 3.7.6
    • 3.7.5
    • 3.7.4
    • 3.7.3
    • 3.7.2
    • 3.7.1
    • 3.7.0
  • 3.6
    • 3.6.6
    • 3.6.5
    • 3.6.4
    • 3.6.3
    • 3.6.2
    • 3.6.1
    • 3.6.0
  • 3.5
    • 3.5.9
    • 3.5.8
    • 3.5.7
    • 3.5.6
    • 3.5.5
    • 3.5.4
    • 3.5.3
    • 3.5.2
    • 3.5.1
    • 3.5.0
  • 3.4
    • 3.4.9
    • 3.4.8
    • 3.4.7
    • 3.4.6
    • 3.4.5
    • 3.4.4
    • 3.4.3
    • 3.4.2
    • 3.4.1
    • 3.4.0
  • 3.3
    • 3.3.6
    • 3.3.5
    • 3.3.4
    • 3.3.3
    • 3.3.2
    • 3.3.1
    • 3.3.0
  • 3.2
    • 3.2.22
    • 3.2.21
    • 3.2.20
    • 3.2.19
    • 3.2.18
    • 3.2.17
    • 3.2.16
    • 3.2.15
    • 3.2.14
    • 3.2.13
    • 3.2.12
    • 3.2.11
    • 3.2.10
    • 3.2.9
    • 3.2.8
    • 3.2.7
    • 3.2.6
    • 3.2.5
    • 3.2.4
    • 3.2.3
    • 3.2.2
    • 3.2.1
    • 3.2.0
  • 3.1
    • 3.1.5
    • 3.1.4
    • 3.1.3
    • 3.1.2
    • 3.1.1
    • 3.1.0
  • 3.0
    • 3.0.1
    • 3.0.0
  • 2.7
    • 2.7.29
    • 2.7.28
    • 2.7.27
    • 2.7.26
    • 2.7.25
    • 2.7.24
    • 2.7.23
    • 2.7.22
    • 2.7.21
    • 2.7.20
    • 2.7.19
    • 2.7.18
    • 2.7.17
    • 2.7.16
    • 2.7.15
    • 2.7.14
    • 2.7.13
    • 2.7.12
    • 2.7.11
    • 2.7.10
    • 2.7.9
    • 2.7.8
    • 2.7.7
    • 2.7.6
    • 2.7.5
    • 2.7.4
    • 2.7.3
    • 2.7.2
    • 2.7.1
    • 2.7.0
  • 2.6
    • 2.6.12
    • 2.6.11
    • 2.6.10
    • 2.6.9
    • 2.6.8
    • 2.6.7
    • 2.6.6
    • 2.6.5
    • 2.6.4
    • 2.6.3
    • 2.6.2
    • 2.6.1
    • 2.6.0
  • 2.5
    • 2.5.5
    • 2.5.4
    • 2.5.3
    • 2.5.2
    • 2.5.1
    • 2.5.0
  • 2.4
    • 2.4.9
    • 2.4.8
    • 2.4.7
    • 2.4.6
    • 2.4.5
    • 2.4.4
    • 2.4.3
    • 2.4.2
    • 2.4.1
    • 2.4.0
  • 2.3
    • 2.3.16
    • 2.3.15
    • 2.3.14
    • 2.3.13
    • 2.3.11
    • 2.3.10
    • 2.3.9
    • 2.3.8
    • 2.3.7
    • 2.3.6
    • 2.3.5
    • 2.3.4
    • 2.3.3
    • 2.3.1
    • 2.3.0
  • 2.2
    • 2.2.14
    • 2.2.13
    • 2.2.12
    • 2.2.11
    • 2.2.10
    • 2.2.9
    • 2.2.8
    • 2.2.7
    • 2.2.6
    • 2.2.5
    • 2.2.4
    • 2.2.3
    • 2.2.2
    • 2.2.1
    • 2.2.0
  • 2.1
    • 2.1.1
    • 2.1.0
  • 2.0
    • 2.0.5
    • 2.0.4
    • 2.0.3
    • 2.0.2
    • 2.0.1
    • 2.0.0

Trích dẫn

Để trích dẫn cytoscape.js trong một bài báo, xin vui lòng trích dẫn vấn đề tin sinh học Oxford:

Cytoscape.js: Thư viện lý thuyết đồ thị để trực quan hóa và phân tích

Franz M, Lopes CT, Huck G, Dong Y, Sumer O, Bader GD

Tin sinh học (2016) 32 (2): 309-311 Xuất bản trực tuyến lần đầu tiên vào ngày 28 tháng 9 năm 2015 DOI: 10.1093/Tin sinh học/BTV557 (PDF)

PubMed Tóm tắt

Kinh phí

Tài trợ cho cytoscape.js và cytoscape được cung cấp bởi NRNB (Viện Y tế Quốc gia Hoa Kỳ, Trung tâm Nghiên cứu Tài nguyên Quốc gia P41 RR031228 và GM103504) và bởi NIH cấp 2R01GM070743 và 1U41HG006623. Các tổ chức sau đây giúp phát triển tế bào học:

Isb | UCSD | MSKCC | Pasteur | Agilent | Ucsf | Unilever | Toronto | Ncibi | Nrnb

Ký hiệu

Mô hình đồ thị

Cytoscape.js hỗ trợ nhiều lý thuyết đồ thị khác nhau usecase. Nó hỗ trợ các biểu đồ theo hướng, đồ thị không mong muốn, đồ thị hỗn hợp, vòng lặp, đa hình, đồ thị hợp chất (một loại siêu hình), v.v.

Chúng tôi thường xuyên thực hiện các bổ sung và cải tiến cho thư viện và chúng tôi sẵn sàng chấp nhận các yêu cầu tính năng và yêu cầu kéo.

Kiến trúc & API

Có hai thành phần trong kiến ​​trúc mà một lập trình viên phải quan tâm để sử dụng cytoscape.js, lõi (tức là một thể hiện đồ thị) và bộ sưu tập. Trong cytoscape.js, cốt lõi là điểm nhập chính của lập trình viên vào thư viện. Từ lõi, một lập trình viên có thể chạy bố cục, thay đổi chế độ xem và thực hiện các hoạt động khác trên toàn bộ biểu đồ.

Core cung cấp một số chức năng để truy cập các yếu tố trong biểu đồ. Mỗi chức năng này trả về một bộ sưu tập, một tập hợp các phần tử trong biểu đồ. Các chức năng có sẵn trên các bộ sưu tập cho phép lập trình viên lọc bộ sưu tập, thực hiện các hoạt động trên bộ sưu tập, vượt qua biểu đồ về bộ sưu tập, lấy dữ liệu về các yếu tố trong bộ sưu tập, v.v.

Lưu ý rằng một bộ sưu tập là bất biến theo mặc định, có nghĩa là tập hợp các phần tử trong một bộ sưu tập không thể thay đổi. API trả về một bộ sưu tập mới với các yếu tố khác nhau khi cần thiết, thay vì biến đổi bộ sưu tập hiện có. Điều này cho phép lập trình viên sử dụng một cách an toàn các hoạt động lý thuyết trên các bộ sưu tập, sử dụng các bộ sưu tập chức năng, v.v. Lưu ý rằng vì một bộ sưu tập chỉ là một danh sách các yếu tố, nên việc tạo ra các bộ sưu tập mới tương đối rẻ.

Đối với mã chuyên sâu hiệu suất, một bộ sưu tập có thể được coi là có thể thay đổi với

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
58 và
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
59. Hầu hết các ứng dụng không bao giờ nên cần các chức năng này.

Chức năng

Có một số loại mà các chức năng khác nhau có thể được thực thi và các tên biến được sử dụng để biểu thị các loại này trong tài liệu được nêu dưới đây:

Tốc kýHoạt động trên
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
60
cốt lõi
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
61
một bộ sưu tập của một hoặc nhiều phần tử (nút và cạnh)
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
62
một bộ sưu tập của một phần tử duy nhất (nút hoặc cạnh)
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
63
một bộ sưu tập của một hoặc nhiều nút
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
64
một bộ sưu tập của một nút duy nhất
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
65
một bộ sưu tập của một hoặc nhiều cạnh
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
66
một bộ sưu tập một cạnh duy nhất
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
67
bố cục
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
68
một hình ảnh động

Theo mặc định, một hàm trả về một tham chiếu trở lại đối tượng gọi để cho phép chuỗi (ví dụ:

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
69). Trừ khi có quy định khác trong tài liệu này, một hàm có thể chuỗi theo cách này trừ khi một giá trị trả về khác được chỉ định. Điều này áp dụng cả cho cốt lõi và bộ sưu tập.

Đối với các chức năng trả về một giá trị, lưu ý rằng gọi một số ít -

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
62,
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
64 hoặc
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
66 - trên một bộ sưu tập có nhiều phần tử sẽ trả về giá trị dự kiến ​​chỉ cho phần tử đầu tiên.

Quyền sở hữu đối tượng

Khi chuyển các đối tượng cho cytoscape.js để tạo các yếu tố, hình ảnh động, bố cục, v.v., các đối tượng được coi là thuộc sở hữu của cytoscape. Các đối tượng như các yếu tố có một số cấp độ đối với chúng và thực hiện các bản sao sâu của các đối tượng đó mỗi khi chúng được chuyển cho Cytoscape tạo ra chi phí bổ sung. Khi muốn, lập trình viên có thể sao chép các đối tượng theo cách thủ công trước khi chuyển chúng đến tế bào học. Tuy nhiên, sao chép là không cần thiết cho hầu hết các lập trình viên hầu hết thời gian.

Cử chỉ

Cytoscape.js hỗ trợ một số cử chỉ:

  • Lấy và kéo nền vào Pan: Touch & Desktop
  • Pinch to Zoom: Touch & Desktop (với Trackpad được hỗ trợ)
  • Bánh xe chuột để phóng to: Máy tính để bàn
  • Trackpad hai ngón lên hoặc xuống để thu nhỏ: máy tính để bàn
  • Nhấn để chọn: Touch & Desktop
  • Nhấn vào nền để không chọn: Máy tính để bàn
  • Bối cảnh Taphold để không chọn: Desktop & Touch
  • Nhiều lựa chọn thông qua khóa sửa đổi (Shift, Command, Control, Alt) + Tap: Desktop
  • Lựa chọn hộp: Chạm (Three Finger Swipe) & Desktop (Khóa sửa đổi + Mousedown sau đó kéo)
  • Lấy và kéo các nút: Touch & Desktop

Tất cả các hành động cử chỉ có thể được kiểm soát bởi lập trình viên, bật hoặc tắt chúng bất cứ khi nào cần thiết.

Chức vụ

Một vị trí nút Node đề cập đến điểm trung tâm của cơ thể.

Có một sự khác biệt quan trọng để thực hiện cho vị trí: một vị trí có thể là một vị trí mô hình hoặc một vị trí được hiển thị.

Một vị trí mô hình - như tên của nó cho thấy - là vị trí được lưu trữ trong mô hình cho một phần tử. Vị trí mô hình phần tử không đổi, mặc dù có những thay đổi đối với Zoom và Pan. Các giá trị thuộc tính kiểu số được chỉ định trong các tọa độ mô hình, ví dụ: Một nút có chiều rộng 20px sẽ rộng 20 pixel ở Zoom 1.

Một vị trí được hiển thị là một vị trí trên màn hình so với chế độ xem. Ví dụ: vị trí được hiển thị là

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
73 chỉ định điểm 100 pixel ở bên phải và 100 pixel xuống từ góc trên cùng bên trái của chế độ xem. Vị trí mô hình và vị trí được hiển thị giống nhau ở Zoom 1 và PAN (0, 0).

Vị trí được hiển thị tự nhiên của một phần tử thay đổi khi Zoom và PAN thay đổi, bởi vì vị trí trên màn hình của phần tử trong chế độ xem thay đổi khi thu phóng và panning được áp dụng. Panning luôn được đo theo tọa độ kết xuất.

Trong tài liệu này, vị trí của người Viking đề cập đến vị trí mô hình trừ khi có quy định khác.

Vị trí nút có thể được đặt thủ công hoặc nó có thể được đặt tự động bằng cách sử dụng bố cục. Bởi vì vị trí của hai nút ảnh hưởng đến độ dài của các cạnh ở giữa chúng, một bố cục đặt hiệu quả độ dài cạnh.

Yếu tố json

Các ví dụ được đưa ra rằng định dạng phác thảo của các yếu tố JSON được sử dụng để tải các yếu tố vào cytoscape.js:

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});

Các yếu tố JSON có thể thay thế ở định dạng sau, được khóa bởi nhóm:

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});

Các nút ghép

Các nút ghép là một bổ sung cho mô hình đồ thị truyền thống. Một nút hợp chất chứa một số nút con, tương tự như cách phần tử HTML DOM có thể chứa một số phần tử con.

Các nút ghép được chỉ định thông qua trường

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
74 trong một phần tử
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
75. Tương tự như các trường
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
76 và
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
77 của các cạnh, trường
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
74 thường bất biến: một nút cha mẹ có thể được chỉ định khi nút được thêm vào biểu đồ và sau thời điểm đó, mối quan hệ cha mẹ con này là bất biến thông qua
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
79. Tuy nhiên, bạn có thể di chuyển các nút con qua
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
80.

Một nút cha mẹ ghép không có kích thước độc lập (vị trí và kích thước), vì các giá trị đó được tự động suy ra bởi các vị trí và kích thước của các nút hậu duệ.

Theo như API có liên quan, các nút ghép được xử lý giống như các nút thông thường - ngoại trừ trong các chức năng hợp chất rõ ràng như

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
81. Điều này có nghĩa là các chức năng lý thuyết đồ thị truyền thống như
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
82 và
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
83 không thực hiện các khoản phụ cấp đặc biệt cho các nút ghép, vì vậy bạn có thể cần thực hiện các cuộc gọi khác nhau đến API tùy thuộc vào Usecase của bạn.

Ví dụ:

var a = cy.$('#a'); // assume a compound node

// the neighbourhood of `a` contains directly connected elements
var directlyConnected = a.neighborhood();

// you may want everything connected to its descendants instead
// because the descendants "belong" to `a`
var indirectlyConnected = a.add( a.descendants() ).neighborhood();

Bắt đầu

Phần này sẽ làm quen với bạn với các bước cơ bản cần thiết để bắt đầu sử dụng cytoscape.js.

Bao gồm cytoscape.js

Nếu bạn đang sử dụng môi trường HTML đơn giản (không có hệ thống xây dựng), thì hãy nguồn cytoscape.js trong thẻ

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
84 hoặc
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
85 nó dưới dạng mô -đun ES6, ví dụ:

<script src="cytoscape.min.js">script>

hoặc

<script type="module">
import cytoscape from "./cytoscape.esm.min.js";
script>

Để sử dụng cytoscape.js từ CDN, hãy sử dụng một trong các CDN sau:

  • CDNJ
  • JSdelivr
  • Pagecdn
  • Unpkg

Vui lòng không liên kết với các bản sao của cytoscape.js từ tài liệu - họ chỉ dành cho các bản demo.

Các tệp có sẵn có sẵn trong

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
86 trong gói NPM:

  • cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    87: Một bản dựng UMD được thu nhỏ với tất cả các phụ thuộc có trong gói. Tệp này rất hữu ích cho các trang nhỏ, tài liệu bổ sung cho một bài báo học thuật chẳng hạn.
  • cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    88: Một bản dựng UMD không được phân loại với tất cả các phụ thuộc có trong gói. Tệp này rất hữu ích để gỡ lỗi trên các trang nhỏ, tài liệu bổ sung cho một bài báo học thuật chẳng hạn.
  • cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    89: Xây dựng ESM (
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    85 /
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    91) Minified với tất cả các phụ thuộc có trong gói. Tệp này phục vụ cùng mục đích với các mục đích trên, nhưng nó có thể được nhập dưới dạng mô -đun ES6 mà không cần một người đóng gói.
  • cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    92: Bản dựng CJS (Node.js) không được phân loại mà không có bất kỳ phụ thuộc nào đi kèm. Điều này được dự định sẽ được tiêu thụ tự động bởi Node.js hoặc một người đóng gói như webpack thông qua
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    93.
  • cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    94: Xây dựng ESM không phân loại (
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    85 /
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    91) mà không có bất kỳ phụ thuộc nào đi kèm. Điều này được dự định sẽ được tiêu thụ tự động bởi Node.js hoặc một người đóng gói như webpack thông qua
    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    97.

Lưu ý rằng cytoscape.js sử dụng kích thước của thùng chứa phần tử HTML DOM của bạn cho bố cục và kết xuất khi khởi tạo. Do đó, điều rất quan trọng là đặt các bảng kiểu CSS của bạn trong

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
98 trước bất kỳ mã liên quan đến cytoscape.js nào. Mặt khác, kích thước có thể được báo cáo không chính xác, dẫn đến hành vi không mong muốn.

Bảng kiểu của bạn có thể bao gồm một cái gì đó như thế này (giả sử phần tử DOM có ID

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
60 được sử dụng làm container):

#cy {
  width: 300px;
  height: 300px;
  display: block;
}

Để cài đặt cytoscape.js qua NPM:

npm install cytoscape

Để sử dụng cytoscape.js trong môi trường ESM với NPM (ví dụ: webpack hoặc node.js với gói

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
00):

import cytoscape from 'cytoscape';

Để sử dụng cytoscape.js trong môi trường phổ biến như Node.js:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
0

Để sử dụng cytoscape.js với AMD/abor.js:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
1

Để cài đặt cytoscape.js thông qua bower:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
2

Để cài đặt cytoscape.js thông qua thiên thạch/khí quyển:

npm install cytoscape

Cytoscape.js hỗ trợ các môi trường với ES5 hoặc mới hơn, vì nó được BABEL chuyển đổi và nó chỉ sử dụng các tính năng cơ bản của thư viện tiêu chuẩn. Phát hiện tính năng được sử dụng cho các tính năng tùy chọn cải thiện hiệu suất. Tuy nhiên, một phiên bản tương lai của cytoscape.js có thể yêu cầu phiên bản cập nhật hơn của thư viện tiêu chuẩn. Bạn có thể muốn sử dụng

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
01 hoặc
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
02 nếu bạn muốn hỗ trợ các trình duyệt cũ trong tương lai.

Khởi tạo

Một thể hiện của cytoscape.js tương ứng với một biểu đồ. Bạn có thể tạo một thể hiện như sau:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
4

Bạn có thể vượt qua một ví dụ jQuery là

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
03 để thuận tiện:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
5

Nếu bạn đang chạy cytoscape.js trong node.js hoặc chạy nó không chính xác, bạn sẽ không chỉ định tùy chọn

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
03. Trong các môi trường không đầu ngầm như Node.js, một thể hiện sẽ tự động không đầu. Để chạy rõ ràng một phiên bản không đầu (ví dụ: trong trình duyệt), bạn có thể chỉ định
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
05 là
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06.

Chỉ định các tùy chọn cơ bản

Để trực quan hóa, các tùy chọn

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
03,
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
08,
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
09 và
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
67 thường nên được đặt:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
6

Bước tiếp theo

Bây giờ bạn có một thể hiện lõi (biểu đồ) với các tùy chọn cơ bản, khám phá API cốt lõi. Nó có điểm vào của bạn cho tất cả các tính năng trong cytoscape.js.

Nếu bạn có câu hỏi mã về cytoscape.js, xin vui lòng đăng câu hỏi của bạn lên stackoverflow.

Cốt lõi

Đối tượng cốt lõi là giao diện của bạn với một biểu đồ. Đây là điểm nhập của bạn vào cytoscape.js: Tất cả các tính năng của thư viện được truy cập thông qua đối tượng này.

Khởi tạo

Một thể hiện của cytoscape.js tương ứng với một biểu đồ. Bạn có thể tạo một thể hiện như sau:

Bạn có thể vượt qua một ví dụ jQuery là

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
03 để thuận tiện:

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
7

Nếu bạn đang chạy cytoscape.js trong node.js hoặc chạy nó không chính xác, bạn sẽ không chỉ định tùy chọn

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
03. Trong các môi trường không đầu ngầm như Node.js, một thể hiện sẽ tự động không đầu. Để chạy rõ ràng một phiên bản không đầu (ví dụ: trong trình duyệt), bạn có thể chỉ định
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
05 là
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06.

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
8

Chỉ định các tùy chọn cơ bản

Để trực quan hóa, các tùy chọn

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
03,
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
08,
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
09 và
cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
67 thường nên được đặt:

Bước tiếp theo

Bây giờ bạn có một thể hiện lõi (biểu đồ) với các tùy chọn cơ bản, khám phá API cốt lõi. Nó có điểm vào của bạn cho tất cả các tính năng trong cytoscape.js.

Nếu bạn có câu hỏi mã về cytoscape.js, xin vui lòng đăng câu hỏi của bạn lên stackoverflow.

Cốt lõi

.side-line {
    display: inline-block;
    border-top: 1px solid black;
    width: 20%;
}

.triangle {
    display: inline-block;
    height: 7px;
    width: 7px;
    transform: rotate(45deg);
    transform-origin: center center;
    border-top: 1px solid black;
    border-left: 1px solid black;
    margin: 0 -3px -3px;
}
9

Đối tượng cốt lõi là giao diện của bạn với một biểu đồ. Đây là điểm nhập của bạn vào cytoscape.js: Tất cả các tính năng của thư viện được truy cập thông qua đối tượng này.

Khởi tạo : A HTML DOM element in which the graph should be rendered. This is unspecified if Cytoscape.js is run headlessly. The container is expected to be an empty div; the visualisation owns the div.

Một biểu đồ có thể được tạo như sau: : An array of elements specified as plain objects. For convenience, this option can alternatively be specified as a promise that resolves to the elements JSON.

Bạn có thể khởi tạo cốt lõi mà không cần bất kỳ tùy chọn nào. Nếu bạn muốn sử dụng cytoscape làm hình ảnh, thì cần có yếu tố DOM ____303, ví dụ: : The stylesheet used to style the graph. For convenience, this option can alternatively be specified as a promise that resolves to the stylesheet.

Lưu ý rằng để đảm bảo sử dụng phông chữ tùy chỉnh (Woff/Woff2), các phông chữ trong câu hỏi phải được tải trước khi cytoscape được khởi tạo. : A plain object that specifies layout options. Which layout is initially run is specified by the

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
19 field. Refer to a layout’s documentation for the options it supports. If you want to specify your node positions yourself in your elements JSON, you can use the
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
20 layout — by default it does not set any positions, leaving your nodes in their current positions (i.e. specified in
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
21 at initialisation time).

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
75: Một đối tượng đơn giản chứa dữ liệu cấp đồ thị (nghĩa là dữ liệu không thuộc về bất kỳ nút hoặc cạnh cụ thể nào). : A plain object that contains graph-level data (i.e. data that does not belong to any particular node or edge).

Trạng thái quan điểm ban đầu

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
23: Mức thu phóng ban đầu của biểu đồ. Đảm bảo tắt các tùy chọn thao tác chế độ xem, chẳng hạn như
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
24, trong bố cục của bạn để nó không được ghi đè khi bố cục được áp dụng. Bạn có thể đặt
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
25 và
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
26 để đặt các hạn chế ở mức thu phóng.
: The initial zoom level of the graph. Make sure to disable viewport manipulation options, such as
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
24, in your layout so that it is not overridden when the layout is applied. You can set
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
25
and
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
26
to set restrictions on the zoom level.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
27: Vị trí đăng tải ban đầu của biểu đồ. Đảm bảo tắt các tùy chọn thao tác chế độ xem, chẳng hạn như
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
24, trong bố cục của bạn để nó không được ghi đè khi bố cục được áp dụng.
: The initial panning position of the graph. Make sure to disable viewport manipulation options, such as
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
24, in your layout so that it is not overridden when the layout is applied.

Tùy chọn tương tác

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
29: Một ràng buộc tối thiểu ở mức thu phóng của biểu đồ. Viewport không thể được chia tỷ lệ nhỏ hơn mức zoom này. : A minimum bound on the zoom level of the graph. The viewport can not be scaled smaller than this zoom level.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
30: Một ràng buộc tối đa trên mức thu phóng của biểu đồ. Viewport không thể được chia tỷ lệ lớn hơn mức zoom này. : A maximum bound on the zoom level of the graph. The viewport can not be scaled larger than this zoom level.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
31: Việc phóng to biểu đồ có được bật hay không, cả bởi các sự kiện của người dùng và lập trình. : Whether zooming the graph is enabled, both by user events and programmatically.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
32: Cho dù sự kiện người dùng (ví dụ: bánh xe chuột, Pinch-to-Zoom) có được phép phóng to biểu đồ hay không. Thay đổi lập trình đối với Zoom không bị ảnh hưởng bởi tùy chọn này. : Whether user events (e.g. mouse wheel, pinch-to-zoom) are allowed to zoom the graph. Programmatic changes to zoom are unaffected by this option.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
33: Cho dù có bật biểu đồ hay không, cả bởi các sự kiện của người dùng và lập trình. : Whether panning the graph is enabled, both by user events and programmatically.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
34: Cho dù sự kiện người dùng (ví dụ: kéo nền biểu đồ) được phép tìm thấy biểu đồ. Thay đổi lập trình đối với PAN không bị ảnh hưởng bởi tùy chọn này. : Whether user events (e.g. dragging the graph background) are allowed to pan the graph. Programmatic changes to pan are unaffected by this option.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
35: Cho dù lựa chọn hộp (tức là kéo một lớp phủ hộp xung quanh và giải phóng nó thành chọn) được bật. Nếu được bật trong khi panning cũng được bật, người dùng phải sử dụng khóa sửa đổi (Shift, Alt, Control hoặc Command) để sử dụng chọn hộp. : Whether box selection (i.e. drag a box overlay around, and release it to select) is enabled. If enabled while panning is also enabled, the user must use a modifier key (shift, alt, control, or command) to use box selection.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
36: Một chuỗi chỉ ra hành vi lựa chọn từ đầu vào của người dùng. Đối với
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
37, một lựa chọn mới được thực hiện bởi người dùng thêm vào tập hợp các phần tử hiện được chọn. Đối với
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
38, một lựa chọn mới do người dùng thực hiện trở thành toàn bộ các phần tử hiện được chọn (nghĩa là các phần tử trước không được chọn).
: A string indicating the selection behaviour from user input. For
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
37, a new selection made by the user adds to the set of currently selected elements. For
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
38, a new selection made by the user becomes the entire set of currently selected elements (i.e. the previous elements are unselected).

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
39 &
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
40: Một số nguyên không âm biểu thị khoảng cách tối đa cho phép mà người dùng có thể di chuyển trong một cử chỉ TAP, trên các thiết bị cảm ứng và thiết bị máy tính để bàn tương ứng. Điều này làm cho việc khai thác dễ dàng hơn cho người dùng. Các giá trị này có mặc định lành mạnh, vì vậy không nên thay đổi các tùy chọn này trừ khi bạn có lý do rất chính đáng để làm như vậy. Các giá trị lớn gần như chắc chắn sẽ có hậu quả không mong muốn.
&
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
40
: A non-negative integer that indicates the maximum allowable distance that a user may move during a tap gesture, on touch devices and desktop devices respectively. This makes tapping easier for users. These values have sane defaults, so it is not advised to change these options unless you have very good reason for doing so. Large values will almost certainly have undesirable consequences.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
41: Liệu các nút có nên được xác định không (không thể lấy được bởi người dùng) theo mặc định (nếu
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06, ghi đè trạng thái nút riêng lẻ).
: Whether nodes should be ungrabified (not grabbable by user) by default (if
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06, overrides individual node state).

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
43: Có nên khóa các nút không (không thể kéo được) theo mặc định (nếu
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06, ghi đè trạng thái nút riêng lẻ).
: Whether nodes should be locked (not draggable at all) by default (if
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06, overrides individual node state).

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
45: Liệu các nút có nên không được chọn (trạng thái lựa chọn bất biến) theo mặc định (nếu
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06, ghi đè trạng thái phần tử riêng lẻ).
: Whether nodes should be unselectified (immutable selection state) by default (if
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06, overrides individual element state).

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
47: Thời gian Debouce tính bằng mili giây để kiểm tra sự kiện
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
48 trước khi thực hiện sự kiện
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
49
: Debouce time in milliseconds to check for
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
48 event before executing the
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
49 event

Tùy chọn kết xuất

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
50: Một tùy chọn tiện lợi sẽ khởi tạo thể hiện để chạy đầu. Bạn không cần thiết lập điều này trong các môi trường không hoàn toàn đầu (ví dụ: Node.js). Tuy nhiên, thật tiện dụng khi đặt
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
51 nếu bạn muốn có một trường hợp không đầu trong trình duyệt.
: A convenience option that initialises the instance to run headlessly. You do not need to set this in environments that are implicitly headless (e.g. Node.js). However, it is handy to set
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
51 if you want a headless instance in a browser.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
52: Một boolean cho biết có nên sử dụng kiểu dáng hay không. Đối với môi trường không đầu (nghĩa là bên ngoài trình duyệt), hiển thị là không cần thiết và do đó, kiểu dáng không cần thiết - do đó tăng tốc mã của bạn. Bạn có thể kích hoạt thủ công kiểu dáng trong môi trường không đầu nếu bạn yêu cầu nó cho một trường hợp đặc biệt. Lưu ý rằng nó không có ý nghĩa để vô hiệu hóa kiểu nếu bạn có kế hoạch kết xuất biểu đồ. Cũng lưu ý rằng
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
53 phải được gọi để làm sạch một ví dụ không có phong cách, không có đầu.
: A boolean that indicates whether styling should be used. For headless (i.e. outside the browser) environments, display is not necessary and so neither is styling necessary — thereby speeding up your code. You can manually enable styling in headless environments if you require it for a special case. Note that it does not make sense to disable style if you plan on rendering the graph. Also note that
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
53 must be called to clean up a style-enabled, headless instance.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
54: Một gợi ý kết xuất rằng khi được đặt thành
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06 làm cho trình kết xuất không kết xuất các cạnh trong khi chế độ xem đang bị thao túng. Điều này làm cho panning, phóng to, kéo dài, et cetera phản ứng nhanh hơn cho các biểu đồ lớn. Tùy chọn này bây giờ chủ yếu là moot, là kết quả của các cải tiến hiệu suất.
: A rendering hint that when set to
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06 makes the renderer not render edges while the viewport is being manipulated. This makes panning, zooming, dragging, et cetera more responsive for large graphs. This option is now largely moot, as a result of performance enhancements.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
56: Một gợi ý kết xuất rằng khi được đặt thành
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06 làm cho trình kết xuất sử dụng kết cấu trong quá trình tìm kiếm và phóng to thay vì vẽ các yếu tố, làm cho đồ thị lớn phản ứng nhanh hơn. Tùy chọn này bây giờ chủ yếu là moot, là kết quả của các cải tiến hiệu suất.
: A rendering hint that when set to
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06 makes the renderer use a texture during panning and zooming instead of drawing the elements, making large graphs more responsive. This option is now largely moot, as a result of performance enhancements.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
58: Một gợi ý kết xuất rằng khi được đặt thành
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06 làm cho trình kết xuất sử dụng hiệu ứng mờ chuyển động để làm cho quá trình chuyển đổi giữa các khung có vẻ mượt mà hơn. Điều này có thể tăng hiệu suất nhận thức cho một biểu đồ lớn. Tùy chọn này bây giờ chủ yếu là moot, là kết quả của các cải tiến hiệu suất.
: A rendering hint that when set to
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
06 makes the renderer use a motion blur effect to make the transition between frames seem smoother. This can increase the perceived performance for a large graphs. This option is now largely moot, as a result of performance enhancements.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
60: Khi
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
61, giá trị này kiểm soát độ mờ của khung mờ chuyển động. Giá trị cao hơn làm cho hiệu ứng mờ chuyển động rõ rệt hơn. Tùy chọn này bây giờ chủ yếu là moot, là kết quả của các cải tiến hiệu suất.
: When
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
61, this value controls the opacity of motion blur frames. Higher values make the motion blur effect more pronounced. This option is now largely moot, as a result of performance enhancements.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
62: Thay đổi độ nhạy của bánh xe cuộn khi phóng to. Đây là một công cụ sửa đổi nhân. Vì vậy, giá trị từ 0 đến 1 làm giảm độ nhạy (zoom chậm hơn) và giá trị lớn hơn 1 làm tăng độ nhạy (zoom nhanh hơn). Tùy chọn này được đặt thành giá trị lành mạnh hoạt động tốt cho chuột chính (Apple, Logitech, Microsoft) trên Linux, Mac và Windows. Nếu giá trị mặc định có vẻ quá nhanh hoặc quá chậm trên hệ thống cụ thể của bạn, bạn có thể có cài đặt chuột không mặc định trong hệ điều hành hoặc chuột thích hợp. Bạn không nên thay đổi giá trị này trừ khi ứng dụng của bạn chỉ hoạt động trên phần cứng cụ thể. Nếu không, bạn có nguy cơ phóng to quá chậm hoặc quá nhanh đối với hầu hết người dùng. : Changes the scroll wheel sensitivity when zooming. This is a multiplicative modifier. So, a value between 0 and 1 reduces the sensitivity (zooms slower), and a value greater than 1 increases the sensitivity (zooms faster). This option is set to a sane value that works well for mainstream mice (Apple, Logitech, Microsoft) on Linux, Mac, and Windows. If the default value seems too fast or too slow on your particular system, you may have non-default mouse settings in your OS or a niche mouse. You should not change this value unless your app is meant to work only on specific hardware. Otherwise, you risk making zooming too slow or too fast for most users.

cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
63: Ghi đè tỷ lệ pixel màn hình với giá trị được đặt thủ công (
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
64 được đề xuất, nếu được đặt). Điều này có thể được sử dụng để tăng hiệu suất trên màn hình mật độ cao bằng cách giảm diện tích hiệu quả cần được hiển thị, mặc dù điều này ít cần thiết hơn nhiều trên các bản phát hành trình duyệt gần đây. Nếu bạn muốn sử dụng tỷ lệ pixel thực tế của phần cứng, bạn có thể đặt
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
65 (mặc định).
: Overrides the screen pixel ratio with a manually set value (
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
64 recommended, if set). This can be used to increase performance on high density displays by reducing the effective area that needs to be rendered, though this is much less necessary on more recent browser releases. If you want to use the hardware’s actual pixel ratio, you can set
cytoscape({
  container: document.getElementById('cy'),

  elements: {
    nodes: [
      {
        data: { id: 'a' }
      },

      {
        data: { id: 'b' }
      }
    ],
    edges: [
      {
        data: { id: 'ab', source: 'a', target: 'b' }
      }
    ]
  },

  layout: {
    name: 'grid',
    rows: 1
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]
});
65 (default).

Thao tác đồ thị

cy.add()               

Thêm các phần tử vào biểu đồ và trả về chúng.

Cy.Add (, & nbsp; eleobj)eleObj )

Thêm một phần tử được chỉ định vào biểu đồ.

  • Eleobja Đối tượng đơn giản chỉ định phần tử.

    A plain object that specifies the element.

Cy.Add (, & nbsp; eleobjs)eleObjs )

Thêm các phần tử được chỉ định vào biểu đồ.

  • Eleobjsan mảng các yếu tố được chỉ định bởi các đối tượng đơn giản.

    An array of elements specified by plain objects.

Cy.Add (, & nbsp; eles)eles )

Thêm các phần tử được chỉ định vào biểu đồ.

  • Eleobjsan mảng các yếu tố được chỉ định bởi các đối tượng đơn giản.

    A collection of elements.

Cy.Add (, & nbsp; eles)

Bộ sưu tập Elesa của các yếu tố.

Thông tin chi tiết

Nếu các đối tượng phần tử đơn giản được sử dụng, thì phải theo định dạng tương tự được sử dụng khi khởi tạo.

Nếu một tập hợp các yếu tố hiện có được chỉ định cho một thể hiện lõi khác, thì các bản sao của các yếu tố đó được thêm vào, cho phép các phần tử được chuyển hiệu quả giữa các trường hợp của cytoscape.js.

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
0

Ví dụ

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
1

cy.remove()           

Thêm một nút từ một đối tượng đơn giản.

Thêm các nút và cạnh vào biểu đồ dưới dạng các đối tượng đơn giản:eles )

Loại bỏ các phần tử khỏi biểu đồ và trả về chúng.

  • cy.remove (, & nbsp; eles)

    A collection of elements to remove.

Loại bỏ các yếu tố được chỉ định.selector )

Bộ sưu tập Elesa của các yếu tố để loại bỏ.

  • cy.remove (, & nbsp; selector)

    Elements matching this selector are removed.

Cy.Add (, & nbsp; eles)

Bộ sưu tập Elesa của các yếu tố.

Thông tin chi tiết

Nếu các đối tượng phần tử đơn giản được sử dụng, thì phải theo định dạng tương tự được sử dụng khi khởi tạo.

Nếu một tập hợp các yếu tố hiện có được chỉ định cho một thể hiện lõi khác, thì các bản sao của các yếu tố đó được thêm vào, cho phép các phần tử được chuyển hiệu quả giữa các trường hợp của cytoscape.js.

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
2

Ví dụ

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
3

Thêm một nút từ một đối tượng đơn giản.

cytoscape({

  container: document.getElementById('cy'),

  elements: [ // flat array of nodes and edges
    { // node n1
      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
      // NB the group field can be automatically inferred for you but specifying it
      // gives you nice debug messages if you mis-init elements


      data: { // element data (put json serialisable dev data here)
        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
        // (`parent` can be effectively changed by `eles.move()`)
      },

      // scratchpad data (usually temp or nonserialisable data)
      scratch: {
        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
      },

      position: { // the model position of the node (optional on init, mandatory after)
        x: 100,
        y: 100
      },

      selected: false, // whether the element is selected (default false)

      selectable: true, // whether the selection state is mutable (default true)

      locked: false, // when locked a node's position is immutable (default false)

      grabbable: true, // whether the node can be grabbed and moved by the user

      pannable: false, // whether dragging the node causes panning instead of grabbing

      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has

      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
      // USE THE STYLESHEET INSTEAD
      style: { // style property overrides 
        'background-color': 'red'
      }
    },

    { // node n2
      data: { id: 'n2' },
      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
    },

    { // node n3
      data: { id: 'n3', parent: 'nparent' },
      position: { x: 123, y: 234 }
    },

    { // node nparent
      data: { id: 'nparent' }
    },

    { // edge e1
      data: {
        id: 'e1',
        // inferred as an edge because `source` and `target` are specified:
        source: 'n1', // the source node id (edge comes from this node)
        target: 'n2'  // the target node id (edge goes to this node)
        // (`source` and `target` can be effectively changed by `eles.move()`)
      },

      pannable: true // whether dragging on the edge causes panning
    }
  ],

  layout: {
    name: 'preset'
  },

  // so we can see the ids
  style: [
    {
      selector: 'node',
      style: {
        'label': 'data(id)'
      }
    }
  ]

});
4

cy.collection()           

Thêm các nút và cạnh vào biểu đồ dưới dạng các đối tượng đơn giản:

cy.collection()

Loại bỏ các phần tử khỏi biểu đồ và trả về chúng.

    cy.remove (, & nbsp; eles)eleObjsoptions )

    Loại bỏ các yếu tố được chỉ định.

    • Bộ sưu tập Elesa của các yếu tố để loại bỏ.

      Elements to be created

    • cy.remove (, & nbsp; selector)

      The options for the collection

      • Loại bỏ các phần tử trong biểu đồ khớp với bộ chọn được chỉ định.

        A truthy value that sets whether the elements are in the removed state (true) or added to the graph (false, default).

    Cy.Add (, & nbsp; eles)

    Bộ sưu tập Elesa của các yếu tố.

    Nếu các đối tượng phần tử đơn giản được sử dụng, thì phải theo định dạng tương tự được sử dụng khi khởi tạo.

    Nếu một tập hợp các yếu tố hiện có được chỉ định cho một thể hiện lõi khác, thì các bản sao của các yếu tố đó được thêm vào, cho phép các phần tử được chuyển hiệu quả giữa các trường hợp của cytoscape.js.

    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    5

    Ví dụ

    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    6

    cy.getElementById()           

    Thêm một nút từ một đối tượng đơn giản.

    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    67,

    Thêm các nút và cạnh vào biểu đồ dưới dạng các đối tượng đơn giản:

    Loại bỏ các phần tử khỏi biểu đồ và trả về chúng.id )

    • cy.remove (, & nbsp; eles)

      The ID of the element to get.

    Nếu các đối tượng phần tử đơn giản được sử dụng, thì phải theo định dạng tương tự được sử dụng khi khởi tạo.

    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    7

    Nếu một tập hợp các yếu tố hiện có được chỉ định cho một thể hiện lõi khác, thì các bản sao của các yếu tố đó được thêm vào, cho phép các phần tử được chuyển hiệu quả giữa các trường hợp của cytoscape.js.

    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    8

    Ví dụ et al              

    Thêm một nút từ một đối tượng đơn giản.

    Thêm các nút và cạnh vào biểu đồ dưới dạng các đối tượng đơn giản:selector )

    Loại bỏ các phần tử khỏi biểu đồ và trả về chúng.

    • cy.remove (, & nbsp; eles)

      The selector the elements should match.

    Loại bỏ các yếu tố được chỉ định.selector )

    Loại bỏ các phần tử khỏi biểu đồ và trả về chúng.

    • cy.remove (, & nbsp; eles)

      The selector the elements should match.

    Loại bỏ các yếu tố được chỉ định.selector )

    Bộ sưu tập Elesa của các yếu tố để loại bỏ.

    • cy.remove (, & nbsp; selector)

      The selector the nodes should match.

    Loại bỏ các phần tử trong biểu đồ khớp với bộ chọn được chỉ định.selector )

    Bộ chọn phù hợp với bộ chọn này được loại bỏ.

    • Lưu ý rằng việc loại bỏ một nút nhất thiết phải loại bỏ các cạnh được kết nối của nó.

      The selector the edges should match.

    Mặc dù các yếu tố được chỉ định cho hàm này được xóa khỏi biểu đồ, chúng vẫn có thể tồn tại trong bộ nhớ. Tuy nhiên, hầu hết tất cả các chức năng sẽ không hoạt động trên các yếu tố bị loại bỏ. Ví dụ, hàm

    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    83 sẽ thất bại đối với một phần tử bị loại bỏ: một phần tử bên ngoài bối cảnh của biểu đồ không thể có một vùng lân cận được xác định. Một phần tử bị loại bỏ chỉ tồn tại để bạn có thể khôi phục nó trở lại thể hiện lõi gốc hoặc một thể hiện mới.selector )

    Loại bỏ các phần tử khỏi biểu đồ và trả về chúng.

    • bộ chọn Selector Các yếu tố nên khớp.

      The selector the elements should match.

    cy.filter (, & nbsp; function (ele, i, eles)))function(ele, i, eles) )

    Nhận các phần tử trong biểu đồ khớp với chức năng bộ lọc được chỉ định.

    • hàm (ele, i, eles) Hàm bộ lọc trả về đúng cho các phần tử nên được trả về.

      The filter function that returns true for elements that should be returned.

      • Elethe yếu tố hiện tại đang được xem xét để lọc.

        The current element under consideration for filtering.

      • Bộ đếm được sử dụng để lặp qua các phần tử trong biểu đồ.

        The counter used for iteration over the elements in the graph.

      • bộ sưu tập các yếu tố được lọc

        The collection of elements being filtered

    Thông tin chi tiết

    Nếu không có phần tử nào trong biểu đồ khớp với bộ chọn, một bộ sưu tập trống sẽ được trả về.

    Hàm

    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    68 hoạt động như một bí danh đối với
    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    69: nó cho phép bạn nhập ít ký tự hơn. Nó tương tự như bí danh jQuery
    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    70 được sử dụng để tìm kiếm tài liệu

    Ví dụ

    Nhận các nút có trọng lượng lớn hơn 50:

    cytoscape({
    
      container: document.getElementById('cy'),
    
      elements: [ // flat array of nodes and edges
        { // node n1
          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
          // NB the group field can be automatically inferred for you but specifying it
          // gives you nice debug messages if you mis-init elements
    
    
          data: { // element data (put json serialisable dev data here)
            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
            // (`parent` can be effectively changed by `eles.move()`)
          },
    
          // scratchpad data (usually temp or nonserialisable data)
          scratch: {
            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
          },
    
          position: { // the model position of the node (optional on init, mandatory after)
            x: 100,
            y: 100
          },
    
          selected: false, // whether the element is selected (default false)
    
          selectable: true, // whether the selection state is mutable (default true)
    
          locked: false, // when locked a node's position is immutable (default false)
    
          grabbable: true, // whether the node can be grabbed and moved by the user
    
          pannable: false, // whether dragging the node causes panning instead of grabbing
    
          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
    
          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
          // USE THE STYLESHEET INSTEAD
          style: { // style property overrides 
            'background-color': 'red'
          }
        },
    
        { // node n2
          data: { id: 'n2' },
          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
        },
    
        { // node n3
          data: { id: 'n3', parent: 'nparent' },
          position: { x: 123, y: 234 }
        },
    
        { // node nparent
          data: { id: 'nparent' }
        },
    
        { // edge e1
          data: {
            id: 'e1',
            // inferred as an edge because `source` and `target` are specified:
            source: 'n1', // the source node id (edge comes from this node)
            target: 'n2'  // the target node id (edge goes to this node)
            // (`source` and `target` can be effectively changed by `eles.move()`)
          },
    
          pannable: true // whether dragging on the edge causes panning
        }
      ],
    
      layout: {
        name: 'preset'
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    
    });
    
    9

    Nhận các cạnh với nút nguồn

    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    71:

    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    0

    Nhận tất cả các nút và cạnh với trọng lượng lớn hơn 50:

    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    1

    Nhận các nút có trọng lượng lớn hơn 50 với chức năng bộ lọc:

    cytoscape({
      container: document.getElementById('cy'),
    
      elements: {
        nodes: [
          {
            data: { id: 'a' }
          },
    
          {
            data: { id: 'b' }
          }
        ],
        edges: [
          {
            data: { id: 'ab', source: 'a', target: 'b' }
          }
        ]
      },
    
      layout: {
        name: 'grid',
        rows: 1
      },
    
      // so we can see the ids
      style: [
        {
          selector: 'node',
          style: {
            'label': 'data(id)'
          }
        }
      ]
    });
    
    2

    cy.batch () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; et al        

    Cho phép thao tác các phần tử mà không kích hoạt nhiều tính toán kiểu hoặc nhiều lần tái vẽ.

    cy.batch (, & nbsp; function ())function() )

    • function () một cuộc gọi lại trong đó bạn có thể thực hiện các bản cập nhật hàng loạt cho các thành phần.

      A callback within which you can make batch updates to elements.

    cy.startBatch()

    Bắt đầu sử dụng thủ công (hữu ích cho các trường hợp không đồng bộ).

      cy.endBatch()

      Kết thúc việc sử dụng thủ công (hữu ích cho các trường hợp không đồng bộ).

        Thông tin chi tiết

        Nếu không có phần tử nào trong biểu đồ khớp với bộ chọn, một bộ sưu tập trống sẽ được trả về.

        Hàm

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        68 hoạt động như một bí danh đối với
        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        69: nó cho phép bạn nhập ít ký tự hơn. Nó tương tự như bí danh jQuery
        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        70 được sử dụng để tìm kiếm tài liệu

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        3

        Ví dụ

        Nhận các nút có trọng lượng lớn hơn 50:

        Nhận các cạnh với nút nguồn

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        71:

        • Nhận tất cả các nút và cạnh với trọng lượng lớn hơn 50:
        • Nhận các nút có trọng lượng lớn hơn 50 với chức năng bộ lọc:
        • cy.batch () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;
          • Cho phép thao tác các phần tử mà không kích hoạt nhiều tính toán kiểu hoặc nhiều lần tái vẽ.
          • cy.batch (, & nbsp; function ())
          • function () một cuộc gọi lại trong đó bạn có thể thực hiện các bản cập nhật hàng loạt cho các thành phần.
          • Bắt đầu sử dụng thủ công (hữu ích cho các trường hợp không đồng bộ).
          • Kết thúc việc sử dụng thủ công (hữu ích cho các trường hợp không đồng bộ).

        Không thêm hàng loạt vào ứng dụng của bạn trừ khi bạn đã xác định được một nút cổ chai hiệu suất hiện hành. Có những hạn chế về loại mã bạn có thể chạy trong một đợt.

        • Thông thường, khi bạn sửa đổi các yếu tố, mỗi sửa đổi có thể kích hoạt tính toán kiểu và vẽ lại - tùy thuộc vào thời gian cho một bản vẽ lại. Ví dụ: sau đây sẽ gây ra hai tính toán kiểu và ít nhất một lần rút:
        • Đây không phải là một vấn đề đối với một số ít hoạt động trên một số yếu tố, nhưng đối với nhiều hoạt động về nhiều yếu tố, bạn kết thúc với các tính toán phong cách dự phòng và có thể là các bản vẽ lại dự phòng. Trong trường hợp xấu nhất, bạn có các bản cập nhật và vẽ lại phong cách
          cytoscape({
            container: document.getElementById('cy'),
          
            elements: {
              nodes: [
                {
                  data: { id: 'a' }
                },
          
                {
                  data: { id: 'b' }
                }
              ],
              edges: [
                {
                  data: { id: 'ab', source: 'a', target: 'b' }
                }
              ]
            },
          
            layout: {
              name: 'grid',
              rows: 1
            },
          
            // so we can see the ids
            style: [
              {
                selector: 'node',
                style: {
                  'label': 'data(id)'
                }
              }
            ]
          });
          
          72 - và cả cập nhật phong cách và vẽ lại có thể tốn kém. Trong trường hợp xấu nhất khi sử dụng
          cytoscape({
            container: document.getElementById('cy'),
          
            elements: {
              nodes: [
                {
                  data: { id: 'a' }
                },
          
                {
                  data: { id: 'b' }
                }
              ],
              edges: [
                {
                  data: { id: 'ab', source: 'a', target: 'b' }
                }
              ]
            },
          
            layout: {
              name: 'grid',
              rows: 1
            },
          
            // so we can see the ids
            style: [
              {
                selector: 'node',
                style: {
                  'label': 'data(id)'
                }
              }
            ]
          });
          
          73, bạn giới hạn các bản cập nhật kiểu ở
          cytoscape({
            container: document.getElementById('cy'),
          
            elements: {
              nodes: [
                {
                  data: { id: 'a' }
                },
          
                {
                  data: { id: 'b' }
                }
              ],
              edges: [
                {
                  data: { id: 'ab', source: 'a', target: 'b' }
                }
              ]
            },
          
            layout: {
              name: 'grid',
              rows: 1
            },
          
            // so we can see the ids
            style: [
              {
                selector: 'node',
                style: {
                  'label': 'data(id)'
                }
              }
            ]
          });
          
          74 và bạn giới hạn các bản vẽ lại chỉ một.
        • Do đó, chức năng này rất hữu ích để thực hiện nhiều thay đổi đối với các yếu tố cùng một lúc. Khi chức năng gọi lại được chỉ định hoàn tất, chỉ các yếu tố yêu cầu nó có kiểu được cập nhật và trình kết xuất tạo ra nhiều nhất một lần vẽ lại.
        • Điều này làm cho các sửa đổi rất hiệu quả đối với các yếu tố, nhưng nó có một số cảnh báo trong một lô:
        • Bạn không thể đọc một cách đáng tin cậy kiểu hoặc kích thước phần tử (nó có thể đã thay đổi hoặc các giá trị được tính toán có thể đã hết hạn).
        • Bạn có thể không muốn sử dụng
          cytoscape({
            container: document.getElementById('cy'),
          
            elements: {
              nodes: [
                {
                  data: { id: 'a' }
                },
          
                {
                  data: { id: 'b' }
                }
              ],
              edges: [
                {
                  data: { id: 'ab', source: 'a', target: 'b' }
                }
              ]
            },
          
            layout: {
              name: 'grid',
              rows: 1
            },
          
            // so we can see the ids
            style: [
              {
                selector: 'node',
                style: {
                  'label': 'data(id)'
                }
              }
            ]
          });
          
          75 et cetera vì chúng buộc phải bỏ qua phong cách thay vì tính toán lại.

        Ví dụ

        Nhận các nút có trọng lượng lớn hơn 50:

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        4

        Nhận các cạnh với nút nguồn

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        71:

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        5

        cy.mount()       

        Nhận tất cả các nút và cạnh với trọng lượng lớn hơn 50:

        Nhận các nút có trọng lượng lớn hơn 50 với chức năng bộ lọc:container )

        • cy.batch () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

          A HTML DOM element in which the graph should be rendered.

        Thông tin chi tiết

        Nếu không có phần tử nào trong biểu đồ khớp với bộ chọn, một bộ sưu tập trống sẽ được trả về.

        cy.unmount()   

        Hàm

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        68 hoạt động như một bí danh đối với
        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        69: nó cho phép bạn nhập ít ký tự hơn. Nó tương tự như bí danh jQuery
        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        70 được sử dụng để tìm kiếm tài liệu

        Thông tin chi tiết

        Nếu không có phần tử nào trong biểu đồ khớp với bộ chọn, một bộ sưu tập trống sẽ được trả về.

        cy.destroy()   

        Hàm

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        68 hoạt động như một bí danh đối với
        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        69: nó cho phép bạn nhập ít ký tự hơn. Nó tương tự như bí danh jQuery
        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        70 được sử dụng để tìm kiếm tài liệu

        Thông tin chi tiết

        Nếu không có phần tử nào trong biểu đồ khớp với bộ chọn, một bộ sưu tập trống sẽ được trả về.

        Nếu bạn loại bỏ phần tử DOM container khỏi trang, thì phiên bản sẽ được làm sạch tự động. Tương tự, gọi

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        53 có làm sạch này và loại bỏ tất cả các container Trẻ em khỏi trang.

        Khi chạy cytoscape.js không đầu, sử dụng

        cytoscape({
          container: document.getElementById('cy'),
        
          elements: {
            nodes: [
              {
                data: { id: 'a' }
              },
        
              {
                data: { id: 'b' }
              }
            ],
            edges: [
              {
                data: { id: 'ab', source: 'a', target: 'b' }
              }
            ]
          },
        
          layout: {
            name: 'grid',
            rows: 1
          },
        
          // so we can see the ids
          style: [
            {
              selector: 'node',
              style: {
                'label': 'data(id)'
              }
            }
          ]
        });
        
        53 chỉ cần thiết nếu bạn đã kích hoạt rõ ràng chức năng kiểu.

        Để bỏ bộ nhớ được sử dụng bởi một ví dụ, cần phải bỏ tất cả các tài liệu tham khảo của riêng bạn vào trường hợp đó để nó có thể được thu thập rác.

        cy.destroyed()   

        Nhận liệu ví dụ của cytoscape.js có bị phá hủy hay không.

        Dữ liệu

        cy.data()                       

        Bí danh:

        var a = cy.$('#a'); // assume a compound node
        
        // the neighbourhood of `a` contains directly connected elements
        var directlyConnected = a.neighborhood();
        
        // you may want everything connected to its descendants instead
        // because the descendants "belong" to `a`
        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
        
        04,
        var a = cy.$('#a'); // assume a compound node
        
        // the neighbourhood of `a` contains directly connected elements
        var directlyConnected = a.neighborhood();
        
        // you may want everything connected to its descendants instead
        // because the descendants "belong" to `a`
        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
        
        04,

        Đọc và viết dữ liệu do nhà phát triển xác định liên kết với biểu đồ.

        cy.data()

        Nhận toàn bộ đối tượng dữ liệu.

          cy.data (, & nbsp; tên)name )

          Nhận một trường dữ liệu cụ thể.

          • Tên Namethe của trường để có được.

            The name of the field to get.

          cy.data (, & nbsp; name, & nbsp; value)namevalue )

          Đặt một trường dữ liệu cụ thể.

          • Tên Namethe của trường để đặt.

            The name of the field to set.

          • Giá trị Valuethe để đặt cho trường.

            The value to set for the field.

          cy.data (, & nbsp; obj)obj )

          Cập nhật nhiều trường dữ liệu cùng một lúc thông qua một đối tượng.

          • Objthe đối tượng chứa các cặp giá trị tên để cập nhật các trường dữ liệu.

            The object containing name-value pairs to update data fields.

          cy.removeData()               

          Bí danh:

          var a = cy.$('#a'); // assume a compound node
          
          // the neighbourhood of `a` contains directly connected elements
          var directlyConnected = a.neighborhood();
          
          // you may want everything connected to its descendants instead
          // because the descendants "belong" to `a`
          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
          
          05,
          var a = cy.$('#a'); // assume a compound node
          
          // the neighbourhood of `a` contains directly connected elements
          var directlyConnected = a.neighborhood();
          
          // you may want everything connected to its descendants instead
          // because the descendants "belong" to `a`
          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
          
          05,

          Loại bỏ dữ liệu do nhà phát triển xác định liên quan đến các yếu tố.

          cy.removeData()

          Loại bỏ tất cả các trường dữ liệu có thể thay đổi cho các yếu tố.

            Cy.RemoveData (, & nbsp; tên)names )

            Xóa các trường dữ liệu đột biến được chỉ định cho các phần tử.

            • Danh sách các trường phân tách không gian tên để xóa.

              A space-separated list of fields to delete.

            cy.scratch()               

            Chức năng mở rộng: Hàm này được dự định để sử dụng trong các tiện ích mở rộng.

            Đặt hoặc nhận dữ liệu Scratchpad, trong đó dữ liệu tạm thời hoặc không phải là JSON có thể được lưu trữ. Dữ liệu Scratchpad cấp ứng dụng nên sử dụng các không gian tên được đặt trước với dấu gạch dưới, như

            var a = cy.$('#a'); // assume a compound node
            
            // the neighbourhood of `a` contains directly connected elements
            var directlyConnected = a.neighborhood();
            
            // you may want everything connected to its descendants instead
            // because the descendants "belong" to `a`
            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
            
            06. Điều này tương tự như
            var a = cy.$('#a'); // assume a compound node
            
            // the neighbourhood of `a` contains directly connected elements
            var directlyConnected = a.neighborhood();
            
            // you may want everything connected to its descendants instead
            // because the descendants "belong" to `a`
            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
            
            07 phổ biến hơn nhưng đối với dữ liệu toàn cầu đồ thị.

            cy.scratch()

            Nhận toàn bộ đối tượng Scratchpad cho lõi.

              Cy.Scratch (, & NBSP; không gian tên)namespace )

              Nhận Scratchpad tại một không gian tên cụ thể.

              • Chuỗi không gian tên tên.

                A namespace string.

              Cy.Scratch (, & nbsp; không gian tên, & nbsp; value)namespacevalue )

              Đặt Scratchpad ở một không gian tên cụ thể.

              • Chuỗi không gian tên tên.

                A namespace string.

              • Cy.Scratch (, & nbsp; không gian tên, & nbsp; value)

                The value to set at the specified namespace.

              cy.removeScratch()       

              Chức năng mở rộng: Hàm này được dự định để sử dụng trong các tiện ích mở rộng.

              Đặt hoặc nhận dữ liệu Scratchpad, trong đó dữ liệu tạm thời hoặc không phải là JSON có thể được lưu trữ. Dữ liệu Scratchpad cấp ứng dụng nên sử dụng các không gian tên được đặt trước với dấu gạch dưới, như

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              06. Điều này tương tự như
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              07 phổ biến hơn nhưng đối với dữ liệu toàn cầu đồ thị.

              Nhận toàn bộ đối tượng Scratchpad cho lõi.namespace )

              Cy.Scratch (, & NBSP; không gian tên)

              • Chuỗi không gian tên tên.

                A namespace string.

              Cy.Scratch (, & nbsp; không gian tên, & nbsp; value)

              Đặt Scratchpad ở một không gian tên cụ thể.

              cy.on()                   

              Giá trị Valuethe để đặt tại không gian tên được chỉ định.

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              12,
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              13,
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              14,

              Loại bỏ dữ liệu Scratchpad. Bạn chỉ nên xóa dữ liệu Scratchpad tại các không gian tên của riêng bạn. Điều này tương tự như

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              08 phổ biến hơn nhưng đối với dữ liệu toàn cầu đồ thị.

              Cy.RemovesCratch (, & NBSP; không gian tên)events [selector]function(event) )

              • Xóa dữ liệu Scratchpad tại một không gian tên cụ thể.

                A space separated list of event names.

              • Lưu ý rằng
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                08 đặt đối tượng Scratchpad cho không gian tên được chỉ định thành
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                10. Điều này cho phép bạn sử dụng các giá trị
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                11 có ý nghĩa.
                [optional]

                A selector to specify elements for which the handler runs.

              • Sự kiện

                The handler function that is called when one of the specified events occurs.

                • Bí danh:
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  12,
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  13,
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  14,

                  The event object.

              Nghe các sự kiện xảy ra trên cốt lõi.

              cy.on (, & nbsp; sự kiện [, & nbsp; selector], & nbsp; function (sự kiện))

              cytoscape({
                container: document.getElementById('cy'),
              
                elements: {
                  nodes: [
                    {
                      data: { id: 'a' }
                    },
              
                    {
                      data: { id: 'b' }
                    }
                  ],
                  edges: [
                    {
                      data: { id: 'ab', source: 'a', target: 'b' }
                    }
                  ]
                },
              
                layout: {
                  name: 'grid',
                  rows: 1
                },
              
                // so we can see the ids
                style: [
                  {
                    selector: 'node',
                    style: {
                      'label': 'data(id)'
                    }
                  }
                ]
              });
              
              6

              Không gian Eventa phân tách danh sách các tên sự kiện.

              cytoscape({
                container: document.getElementById('cy'),
              
                elements: {
                  nodes: [
                    {
                      data: { id: 'a' }
                    },
              
                    {
                      data: { id: 'b' }
                    }
                  ],
                  edges: [
                    {
                      data: { id: 'ab', source: 'a', target: 'b' }
                    }
                  ]
                },
              
                layout: {
                  name: 'grid',
                  rows: 1
                },
              
                // so we can see the ids
                style: [
                  {
                    selector: 'node',
                    style: {
                      'label': 'data(id)'
                    }
                  }
                ]
              });
              
              7

              cy.promiseOn()           

              Bộ chọn [Tùy chọn] Một bộ chọn để chỉ định các thành phần mà trình xử lý chạy.

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              16,

              Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

              Sự kiện đối tượng sự kiện.events [selector] )

              • Xóa dữ liệu Scratchpad tại một không gian tên cụ thể.

                A space separated list of event names.

              • Lưu ý rằng
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                08 đặt đối tượng Scratchpad cho không gian tên được chỉ định thành
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                10. Điều này cho phép bạn sử dụng các giá trị
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                11 có ý nghĩa.
                [optional]

                A selector to specify elements for which the handler runs.

              Nghe các sự kiện xảy ra trên cốt lõi.

              cytoscape({
                container: document.getElementById('cy'),
              
                elements: {
                  nodes: [
                    {
                      data: { id: 'a' }
                    },
              
                    {
                      data: { id: 'b' }
                    }
                  ],
                  edges: [
                    {
                      data: { id: 'ab', source: 'a', target: 'b' }
                    }
                  ]
                },
              
                layout: {
                  name: 'grid',
                  rows: 1
                },
              
                // so we can see the ids
                style: [
                  {
                    selector: 'node',
                    style: {
                      'label': 'data(id)'
                    }
                  }
                ]
              });
              
              8

              cy.one()       

              cy.on (, & nbsp; sự kiện [, & nbsp; selector], & nbsp; function (sự kiện))

              Không gian Eventa phân tách danh sách các tên sự kiện.events [selector]function(event) )

              • Xóa dữ liệu Scratchpad tại một không gian tên cụ thể.

                A space separated list of event names.

              • Lưu ý rằng
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                08 đặt đối tượng Scratchpad cho không gian tên được chỉ định thành
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                10. Điều này cho phép bạn sử dụng các giá trị
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                11 có ý nghĩa.
                [optional]

                A selector to specify elements for which the handler runs.

              • Sự kiện

                The handler function that is called when one of the specified events occurs.

                • Bí danh:
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  12,
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  13,
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  14,

                  The event object.

              Nghe các sự kiện xảy ra trên cốt lõi.

              cytoscape({
                container: document.getElementById('cy'),
              
                elements: {
                  nodes: [
                    {
                      data: { id: 'a' }
                    },
              
                    {
                      data: { id: 'b' }
                    }
                  ],
                  edges: [
                    {
                      data: { id: 'ab', source: 'a', target: 'b' }
                    }
                  ]
                },
              
                layout: {
                  name: 'grid',
                  rows: 1
                },
              
                // so we can see the ids
                style: [
                  {
                    selector: 'node',
                    style: {
                      'label': 'data(id)'
                    }
                  }
                ]
              });
              
              9

              cy.removeListener()                   

              cy.on (, & nbsp; sự kiện [, & nbsp; selector], & nbsp; function (sự kiện))

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              17,
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              18,
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              19,

              Không gian Eventa phân tách danh sách các tên sự kiện.

              Bộ chọn [Tùy chọn] Một bộ chọn để chỉ định các thành phần mà trình xử lý chạy.events [selector] [handler] )

              • Xóa dữ liệu Scratchpad tại một không gian tên cụ thể.

                A space separated list of event names.

              • Lưu ý rằng
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                08 đặt đối tượng Scratchpad cho không gian tên được chỉ định thành
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                10. Điều này cho phép bạn sử dụng các giá trị
                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                11 có ý nghĩa.
                [optional]

                The same selector used to listen to the events.

              • Sự kiện [optional]

                A reference to the handler function to remove.

              Nghe các sự kiện xảy ra trên cốt lõi.

              cy.on (, & nbsp; sự kiện [, & nbsp; selector], & nbsp; function (sự kiện))

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              0

              Không gian Eventa phân tách danh sách các tên sự kiện.

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              1

              cy.removeAllListeners()   

              Loại bỏ tất cả các trình xử lý sự kiện trên lõi.

              cy.emit()           

              Bí danh:

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              20,
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              20,

              Phát ra một hoặc nhiều sự kiện.

              cy.emit (, & nbsp; các sự kiện [, & nbsp; extraparams])events [extraParams] )

              • Danh sách sự kiện của các tên sự kiện để phát ra (một chuỗi được phân tách không gian hoặc một mảng)

                A list of event names to emit (either a space-separated string or an array)

              • Extraparams [Tùy chọn] Một mảng các tham số bổ sung để chuyển đến trình xử lý. [optional]

                An array of additional parameters to pass to the handler.

              Ví dụ

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              2

              cy.ready()       

              Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              21.

              Cy.Ready (, & nbsp; function (sự kiện))function(event) )

              • Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.

                The callback run as soon as the graph is ready.

                • Sự kiện sự kiện
                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  22.

                  The

                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  22 event.

              Thao tác chế độ xem

              cy.container()   

              Nhận phần tử HTML DOM trong đó biểu đồ được hiển thị. Một giá trị null được trả về nếu trường hợp không đầu.

              cy.center()               

              Bí danh:

              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              23,
              var a = cy.$('#a'); // assume a compound node
              
              // the neighbourhood of `a` contains directly connected elements
              var directlyConnected = a.neighborhood();
              
              // you may want everything connected to its descendants instead
              // because the descendants "belong" to `a`
              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
              
              23,

              Pan đồ thị đến trung tâm của một bộ sưu tập.

              cy.center()

              Trung tâm trên tất cả các yếu tố trong biểu đồ.

                Cy.Center (, & nbsp; eles)eles )

                Trung tâm trên các yếu tố cụ thể.

                • Bộ sưu tập Elesthe đến Trung tâm.

                  The collection to centre upon.

                Thông tin chi tiết

                Nếu không có bộ sưu tập nào được chỉ định, thì biểu đồ được tập trung vào tất cả các nút và cạnh trong biểu đồ.

                Ví dụ

                Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                21.

                var a = cy.$('#a'); // assume a compound node
                
                // the neighbourhood of `a` contains directly connected elements
                var directlyConnected = a.neighborhood();
                
                // you may want everything connected to its descendants instead
                // because the descendants "belong" to `a`
                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                
                3

                cy.fit()           

                Cy.Ready (, & nbsp; function (sự kiện))

                cy.fit()

                Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.

                  Sự kiện sự kiện

                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  22. [eles] [padding] )

                  Thao tác chế độ xem

                  • Nhận phần tử HTML DOM trong đó biểu đồ được hiển thị. Một giá trị null được trả về nếu trường hợp không đầu. [optional]

                    The collection to fit to.

                  • Bí danh:
                    var a = cy.$('#a'); // assume a compound node
                    
                    // the neighbourhood of `a` contains directly connected elements
                    var directlyConnected = a.neighborhood();
                    
                    // you may want everything connected to its descendants instead
                    // because the descendants "belong" to `a`
                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                    
                    23,
                    [optional]

                    An amount of padding (in rendered pixels) to have around the graph (default

                    var a = cy.$('#a'); // assume a compound node
                    
                    // the neighbourhood of `a` contains directly connected elements
                    var directlyConnected = a.neighborhood();
                    
                    // you may want everything connected to its descendants instead
                    // because the descendants "belong" to `a`
                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                    
                    25).

                  Thông tin chi tiết

                  Nếu không có bộ sưu tập nào được chỉ định, thì biểu đồ được tập trung vào tất cả các nút và cạnh trong biểu đồ.

                  Ví dụ

                  Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  21.

                  var a = cy.$('#a'); // assume a compound node
                  
                  // the neighbourhood of `a` contains directly connected elements
                  var directlyConnected = a.neighborhood();
                  
                  // you may want everything connected to its descendants instead
                  // because the descendants "belong" to `a`
                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                  
                  4

                  cy.reset()       

                  Cy.Ready (, & nbsp; function (sự kiện))

                  cy.reset()

                  Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.

                    Thông tin chi tiết

                    Nếu không có bộ sưu tập nào được chỉ định, thì biểu đồ được tập trung vào tất cả các nút và cạnh trong biểu đồ.

                    Ví dụ

                    var a = cy.$('#a'); // assume a compound node
                    
                    // the neighbourhood of `a` contains directly connected elements
                    var directlyConnected = a.neighborhood();
                    
                    // you may want everything connected to its descendants instead
                    // because the descendants "belong" to `a`
                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                    
                    5

                    cy.pan()           

                    Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

                    var a = cy.$('#a'); // assume a compound node
                    
                    // the neighbourhood of `a` contains directly connected elements
                    var directlyConnected = a.neighborhood();
                    
                    // you may want everything connected to its descendants instead
                    // because the descendants "belong" to `a`
                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                    
                    21.

                    cy.pan()

                    Cy.Ready (, & nbsp; function (sự kiện))

                      Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.renderedPosition )

                      Sự kiện sự kiện

                      var a = cy.$('#a'); // assume a compound node
                      
                      // the neighbourhood of `a` contains directly connected elements
                      var directlyConnected = a.neighborhood();
                      
                      // you may want everything connected to its descendants instead
                      // because the descendants "belong" to `a`
                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                      
                      22.

                      • Thao tác chế độ xem

                        The rendered position to pan the graph to.

                      Thông tin chi tiết

                      Nếu không có bộ sưu tập nào được chỉ định, thì biểu đồ được tập trung vào tất cả các nút và cạnh trong biểu đồ.

                      Ví dụ

                      Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

                      var a = cy.$('#a'); // assume a compound node
                      
                      // the neighbourhood of `a` contains directly connected elements
                      var directlyConnected = a.neighborhood();
                      
                      // you may want everything connected to its descendants instead
                      // because the descendants "belong" to `a`
                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                      
                      21.

                      var a = cy.$('#a'); // assume a compound node
                      
                      // the neighbourhood of `a` contains directly connected elements
                      var directlyConnected = a.neighborhood();
                      
                      // you may want everything connected to its descendants instead
                      // because the descendants "belong" to `a`
                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                      
                      6

                      cy.panBy()       

                      Cy.Ready (, & nbsp; function (sự kiện))

                      Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.renderedPosition )

                      • Sự kiện sự kiện
                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        22.

                        Thao tác chế độ xem

                      Thông tin chi tiết

                      Nếu không có bộ sưu tập nào được chỉ định, thì biểu đồ được tập trung vào tất cả các nút và cạnh trong biểu đồ.

                      Ví dụ

                      Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

                      var a = cy.$('#a'); // assume a compound node
                      
                      // the neighbourhood of `a` contains directly connected elements
                      var directlyConnected = a.neighborhood();
                      
                      // you may want everything connected to its descendants instead
                      // because the descendants "belong" to `a`
                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                      
                      21.

                      var a = cy.$('#a'); // assume a compound node
                      
                      // the neighbourhood of `a` contains directly connected elements
                      var directlyConnected = a.neighborhood();
                      
                      // you may want everything connected to its descendants instead
                      // because the descendants "belong" to `a`
                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                      
                      7

                      cy.panningEnabled()           

                      Cy.Ready (, & nbsp; function (sự kiện))

                      cy.panningEnabled()

                      Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.

                        Sự kiện sự kiện

                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        22.bool )

                        Thao tác chế độ xem

                        • Nhận phần tử HTML DOM trong đó biểu đồ được hiển thị. Một giá trị null được trả về nếu trường hợp không đầu.

                          A truthy value enables panning; a falsey value disables it.

                        Ví dụ

                        Enable:

                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        8

                        Disable:

                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        9

                        cy.userPanningEnabled()           

                        Chạy một cuộc gọi lại ngay khi biểu đồ đã sẵn sàng (nghĩa là dữ liệu trực tuyến được tải và bố cục ban đầu đã hoàn thành). Nếu biểu đồ đã sẵn sàng, thì cuộc gọi lại được gọi ngay lập tức. Nếu dữ liệu được tải đồng bộ và bố cục được sử dụng là rời rạc/đồng bộ/không hợp nhất/không xác định, thì bạn không cần

                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        21.

                        cy.userPanningEnabled()

                        Cy.Ready (, & nbsp; function (sự kiện))

                        Chức năng (sự kiện) Cuộc gọi lại chạy ngay khi biểu đồ đã sẵn sàng.bool )

                        Sự kiện sự kiện

                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        22.

                        • Thao tác chế độ xem

                          A truthy value enables user panning; a falsey value disables it.

                        Ví dụ

                        Enable:

                        <script src="cytoscape.min.js">script>
                        
                        0

                        Disable:

                        <script src="cytoscape.min.js">script>
                        
                        1

                        cy.zoom()               

                        Nhận phần tử HTML DOM trong đó biểu đồ được hiển thị. Một giá trị null được trả về nếu trường hợp không đầu.

                        cy.zoom()

                        Bí danh:

                        var a = cy.$('#a'); // assume a compound node
                        
                        // the neighbourhood of `a` contains directly connected elements
                        var directlyConnected = a.neighborhood();
                        
                        // you may want everything connected to its descendants instead
                        // because the descendants "belong" to `a`
                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                        
                        23,

                          Pan đồ thị đến trung tâm của một bộ sưu tập.level )

                          Trung tâm trên tất cả các yếu tố trong biểu đồ.

                          • Cy.Center (, & nbsp; eles)

                            The zoom level to set.

                          Trung tâm trên các yếu tố cụ thể.options )

                          Trung tâm trên tất cả các yếu tố trong biểu đồ.

                          • Cy.Center (, & nbsp; eles)

                            The options for zooming.

                            • Cy.Center (, & nbsp; eles)

                              The zoom level to set.

                            • Trung tâm trên các yếu tố cụ thể.

                              The position about which to zoom.

                            • Bộ sưu tập Elesthe đến Trung tâm.

                              The rendered position about which to zoom.

                          Thông tin chi tiết

                          Nếu không có bộ sưu tập nào được chỉ định, thì biểu đồ được tập trung vào tất cả các nút và cạnh trong biểu đồ.

                          Giữa đồ thị trên nút

                          var a = cy.$('#a'); // assume a compound node
                          
                          // the neighbourhood of `a` contains directly connected elements
                          var directlyConnected = a.neighborhood();
                          
                          // you may want everything connected to its descendants instead
                          // because the descendants "belong" to `a`
                          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                          
                          24:

                          Pan và phóng to biểu đồ để phù hợp với một bộ sưu tập.

                          <script src="cytoscape.min.js">script>
                          
                          2

                          Phù hợp với tất cả các yếu tố trong biểu đồ.

                          <script src="cytoscape.min.js">script>
                          
                          3

                          cy.fit ([, & nbsp; eles] [, & nbsp; padding]))

                          Ví dụ

                          Phóng to yếu tố 2

                          <script src="cytoscape.min.js">script>
                          
                          4

                          Phóng to hệ số zoom tối thiểu

                          <script src="cytoscape.min.js">script>
                          
                          5

                          Phóng to hệ số zoom tối đa

                          <script src="cytoscape.min.js">script>
                          
                          6

                          Phóng to một nút

                          <script src="cytoscape.min.js">script>
                          
                          7

                          cy.zoomingEnabled()           

                          Nhận hoặc đặt xem có phóng to được bật không.

                          cy.zoomingenables ()

                          Nhận được liệu phóng to được bật.

                            cy.zoomingenables (, & nbsp; bool)bool )

                            Đặt xem phóng to được bật.

                            • Giá trị sự thật của Boola cho phép phóng to; Một giá trị giả vô hiệu hóa nó.

                              A truthy value enables zooming; a falsey value disables it.

                            Ví dụ

                            Enable:

                            <script src="cytoscape.min.js">script>
                            
                            8

                            Disable:

                            <script src="cytoscape.min.js">script>
                            
                            9

                            cy.userZoomingEnabled()           

                            Nhận hoặc đặt xem việc phóng to các sự kiện của người dùng (ví dụ: bánh xe chuột, Pinch-to-Zoom) được bật.

                            cy.userZoomingEnabled()

                            Nhận liệu người dùng thu phóng được bật.

                              cy.userzoomingenables (, & nbsp; bool)bool )

                              Đặt liệu thu phóng người dùng có được bật không.

                              • Giá trị sự thật của Boola cho phép phóng to người dùng; Một giá trị giả vô hiệu hóa nó.

                                A truthy value enables user zooming; a falsey value disables it.

                              Ví dụ

                              Enable:

                              <script type="module">
                              import cytoscape from "./cytoscape.esm.min.js";
                              script>
                              
                              0

                              Disable:

                              <script type="module">
                              import cytoscape from "./cytoscape.esm.min.js";
                              script>
                              
                              1

                              cy.minZoom()           

                              Nhận hoặc đặt mức thu phóng tối thiểu.

                              cy.minZoom()

                              Nhận mức zoom tối thiểu.

                                cy.minzoom (, & nbsp; zoom)zoom )

                                Đặt mức zoom tối thiểu.

                                • Phóng to mức thu phóng tối thiểu mới để sử dụng.

                                  The new minimum zoom level to use.

                                cy.maxZoom()           

                                Nhận hoặc đặt mức thu phóng tối đa.

                                cy.maxZoom()

                                Nhận mức zoom tối đa.

                                  Cy.MaxZoom (, & NBSP; Zoom)zoom )

                                  Đặt mức zoom tối đa.

                                  • Phóng to mức thu phóng tối đa mới để sử dụng.

                                    The new maximum zoom level to use.

                                  cy.viewport()       

                                  Đặt trạng thái chế độ xem (PAN & ZOOM) trong một cuộc gọi.

                                  Cy.Viewport (, & NBSP; Tùy chọn)options )

                                  • Tùy chọn tùy chọn chế độ xem.

                                    The viewport options.

                                    • Phóng to mức thu phóng để đặt.

                                      The zoom level to set.

                                    • Panthe chảo để đặt (một vị trí được hiển thị).

                                      The pan to set (a rendered position).

                                  Ví dụ

                                  <script type="module">
                                  import cytoscape from "./cytoscape.esm.min.js";
                                  script>
                                  
                                  2

                                  cy.boxSelectionEnabled()           

                                  Nhận hoặc đặt xem lựa chọn hộp có được bật không. Nếu được bật cùng với Panning, người dùng phải giữ một trong số dịch chuyển, điều khiển, alt hoặc lệnh để bắt đầu lựa chọn hộp.

                                  cy.boxSelectionEnabled()

                                  Nhận liệu lựa chọn hộp có được bật không.

                                    Cy.boxSelectionEnables (, & nbsp; bool)bool )

                                    Đặt xem lựa chọn hộp có được bật không.

                                    • Giá trị sự thật của Boola cho phép lựa chọn hộp; Một giá trị giả vô hiệu hóa nó.

                                      A truthy value enables box selection; a falsey value disables it.

                                    Ví dụ

                                    Enable:

                                    <script type="module">
                                    import cytoscape from "./cytoscape.esm.min.js";
                                    script>
                                    
                                    3

                                    Disable:

                                    <script type="module">
                                    import cytoscape from "./cytoscape.esm.min.js";
                                    script>
                                    
                                    4

                                    cy.selectionType()           

                                    Nhận hoặc đặt loại lựa chọn. Loại lựa chọn

                                    cytoscape({
                                      container: document.getElementById('cy'),
                                    
                                      elements: {
                                        nodes: [
                                          {
                                            data: { id: 'a' }
                                          },
                                    
                                          {
                                            data: { id: 'b' }
                                          }
                                        ],
                                        edges: [
                                          {
                                            data: { id: 'ab', source: 'a', target: 'b' }
                                          }
                                        ]
                                      },
                                    
                                      layout: {
                                        name: 'grid',
                                        rows: 1
                                      },
                                    
                                      // so we can see the ids
                                      style: [
                                        {
                                          selector: 'node',
                                          style: {
                                            'label': 'data(id)'
                                          }
                                        }
                                      ]
                                    });
                                    
                                    38 là mặc định, khai thác một phần tử chọn phần tử đó và bỏ chọn các phần tử trước đó.
                                    var a = cy.$('#a'); // assume a compound node
                                    
                                    // the neighbourhood of `a` contains directly connected elements
                                    var directlyConnected = a.neighborhood();
                                    
                                    // you may want everything connected to its descendants instead
                                    // because the descendants "belong" to `a`
                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                    
                                    32

                                    cy.selectionType()

                                    Nhận chuỗi loại lựa chọn.

                                      Cy.SelectionType (, & nbsp; loại)type )

                                      Đặt loại lựa chọn.

                                      • TypeThe Lựa chọn loại chuỗi; một trong
                                        cytoscape({
                                          container: document.getElementById('cy'),
                                        
                                          elements: {
                                            nodes: [
                                              {
                                                data: { id: 'a' }
                                              },
                                        
                                              {
                                                data: { id: 'b' }
                                              }
                                            ],
                                            edges: [
                                              {
                                                data: { id: 'ab', source: 'a', target: 'b' }
                                              }
                                            ]
                                          },
                                        
                                          layout: {
                                            name: 'grid',
                                            rows: 1
                                          },
                                        
                                          // so we can see the ids
                                          style: [
                                            {
                                              selector: 'node',
                                              style: {
                                                'label': 'data(id)'
                                              }
                                            }
                                          ]
                                        });
                                        
                                        38 (mặc định) hoặc
                                        cytoscape({
                                          container: document.getElementById('cy'),
                                        
                                          elements: {
                                            nodes: [
                                              {
                                                data: { id: 'a' }
                                              },
                                        
                                              {
                                                data: { id: 'b' }
                                              }
                                            ],
                                            edges: [
                                              {
                                                data: { id: 'ab', source: 'a', target: 'b' }
                                              }
                                            ]
                                          },
                                        
                                          layout: {
                                            name: 'grid',
                                            rows: 1
                                          },
                                        
                                          // so we can see the ids
                                          style: [
                                            {
                                              selector: 'node',
                                              style: {
                                                'label': 'data(id)'
                                              }
                                            }
                                          ]
                                        });
                                        
                                        37.

                                        The selection type string; one of

                                        cytoscape({
                                          container: document.getElementById('cy'),
                                        
                                          elements: {
                                            nodes: [
                                              {
                                                data: { id: 'a' }
                                              },
                                        
                                              {
                                                data: { id: 'b' }
                                              }
                                            ],
                                            edges: [
                                              {
                                                data: { id: 'ab', source: 'a', target: 'b' }
                                              }
                                            ]
                                          },
                                        
                                          layout: {
                                            name: 'grid',
                                            rows: 1
                                          },
                                        
                                          // so we can see the ids
                                          style: [
                                            {
                                              selector: 'node',
                                              style: {
                                                'label': 'data(id)'
                                              }
                                            }
                                          ]
                                        });
                                        
                                        38 (default) or
                                        cytoscape({
                                          container: document.getElementById('cy'),
                                        
                                          elements: {
                                            nodes: [
                                              {
                                                data: { id: 'a' }
                                              },
                                        
                                              {
                                                data: { id: 'b' }
                                              }
                                            ],
                                            edges: [
                                              {
                                                data: { id: 'ab', source: 'a', target: 'b' }
                                              }
                                            ]
                                          },
                                        
                                          layout: {
                                            name: 'grid',
                                            rows: 1
                                          },
                                        
                                          // so we can see the ids
                                          style: [
                                            {
                                              selector: 'node',
                                              style: {
                                                'label': 'data(id)'
                                              }
                                            }
                                          ]
                                        });
                                        
                                        37.

                                      cy.width()   

                                      Nhận chiều rộng trên màn hình của chế độ xem trong pixel.

                                      cy.height()   

                                      Nhận chiều cao trên màn hình của chế độ xem trong pixel.

                                      cy.extent()   

                                      Nhận mức độ của chế độ xem, một hộp giới hạn trong các tọa độ mô hình cho phép bạn biết những vị trí mô hình nào có thể nhìn thấy trong chế độ xem.

                                      Thông tin chi tiết

                                      Hàm này trả về một hộp giới hạn đối tượng đơn giản với định dạng

                                      var a = cy.$('#a'); // assume a compound node
                                      
                                      // the neighbourhood of `a` contains directly connected elements
                                      var directlyConnected = a.neighborhood();
                                      
                                      // you may want everything connected to its descendants instead
                                      // because the descendants "belong" to `a`
                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                      
                                      35.

                                      cy.autolock()           

                                      Nhận hoặc đặt xem các nút có được khóa tự động hay không (nghĩa là nếu

                                      cytoscape({
                                        container: document.getElementById('cy'),
                                      
                                        elements: {
                                          nodes: [
                                            {
                                              data: { id: 'a' }
                                            },
                                      
                                            {
                                              data: { id: 'b' }
                                            }
                                          ],
                                          edges: [
                                            {
                                              data: { id: 'ab', source: 'a', target: 'b' }
                                            }
                                          ]
                                        },
                                      
                                        layout: {
                                          name: 'grid',
                                          rows: 1
                                        },
                                      
                                        // so we can see the ids
                                        style: [
                                          {
                                            selector: 'node',
                                            style: {
                                              'label': 'data(id)'
                                            }
                                          }
                                        ]
                                      });
                                      
                                      06, các nút bị khóa mặc dù trạng thái riêng lẻ của chúng).

                                      cy.autolock()

                                      Nhận liệu Autolocking có được bật không.

                                        Cy.Autolock (, & NBSP; Bool)bool )

                                        Đặt xem Autolocking có được bật không.

                                        • Giá trị sự thật của Boola cho phép tự động hóa; Một giá trị giả vô hiệu hóa nó.

                                          A truthy value enables autolocking; a falsey value disables it.

                                        Ví dụ

                                        Enable:

                                        <script type="module">
                                        import cytoscape from "./cytoscape.esm.min.js";
                                        script>
                                        
                                        5

                                        Disable:

                                        <script type="module">
                                        import cytoscape from "./cytoscape.esm.min.js";
                                        script>
                                        
                                        6

                                        cy.autoungrabify()           

                                        Nhận hoặc đặt xem các nút có tự động không được kiểm soát hay không (nghĩa là nếu

                                        cytoscape({
                                          container: document.getElementById('cy'),
                                        
                                          elements: {
                                            nodes: [
                                              {
                                                data: { id: 'a' }
                                              },
                                        
                                              {
                                                data: { id: 'b' }
                                              }
                                            ],
                                            edges: [
                                              {
                                                data: { id: 'ab', source: 'a', target: 'b' }
                                              }
                                            ]
                                          },
                                        
                                          layout: {
                                            name: 'grid',
                                            rows: 1
                                          },
                                        
                                          // so we can see the ids
                                          style: [
                                            {
                                              selector: 'node',
                                              style: {
                                                'label': 'data(id)'
                                              }
                                            }
                                          ]
                                        });
                                        
                                        06, các nút không được điều chỉnh mặc dù trạng thái riêng lẻ của chúng).

                                        cy.autoungrabify()

                                        Nhận liệu AutounGrabifying có được bật hay không.

                                          Cy.AutoungRabify (, & nbsp; bool)bool )

                                          Đặt xem AutounGrabifying có được bật không.

                                          • Giá trị sự thật của Boola cho phép tự động hóa; Một giá trị giả vô hiệu hóa nó.

                                            A truthy value enables autoungrabbifying; a falsey value disables it.

                                          Ví dụ

                                          Enable:

                                          <script type="module">
                                          import cytoscape from "./cytoscape.esm.min.js";
                                          script>
                                          
                                          7

                                          Disable:

                                          <script type="module">
                                          import cytoscape from "./cytoscape.esm.min.js";
                                          script>
                                          
                                          8

                                          cy.autounselectify()           

                                          Nhận hoặc đặt xem các nút có tự động không được chọn hay không (nghĩa là nếu

                                          cytoscape({
                                            container: document.getElementById('cy'),
                                          
                                            elements: {
                                              nodes: [
                                                {
                                                  data: { id: 'a' }
                                                },
                                          
                                                {
                                                  data: { id: 'b' }
                                                }
                                              ],
                                              edges: [
                                                {
                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                }
                                              ]
                                            },
                                          
                                            layout: {
                                              name: 'grid',
                                              rows: 1
                                            },
                                          
                                            // so we can see the ids
                                            style: [
                                              {
                                                selector: 'node',
                                                style: {
                                                  'label': 'data(id)'
                                                }
                                              }
                                            ]
                                          });
                                          
                                          06, các nút không thể chọn được mặc dù trạng thái riêng lẻ của chúng).

                                          cy.autounselectify()

                                          Nhận xem Aut -chiếtSEctifying có được bật hay không.

                                            Cy.Autedselectify (, & nbsp; bool)bool )

                                            Đặt xem AutoveSelectifying có được bật hay không.

                                            • Giá trị sự thật của Boola cho phép tự động hóa; Một giá trị giả vô hiệu hóa nó.

                                              A truthy value enables autounselectifying; a falsey value disables it.

                                            Ví dụ

                                            Enable:

                                            <script type="module">
                                            import cytoscape from "./cytoscape.esm.min.js";
                                            script>
                                            
                                            9

                                            Disable:

                                            #cy {
                                              width: 300px;
                                              height: 300px;
                                              display: block;
                                            }
                                            
                                            0

                                            cy.resize()       

                                            Bí danh:

                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            39,
                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            39,

                                            Buộc trình kết xuất phải tính toán lại giới hạn chế độ xem.

                                            Thông tin chi tiết

                                            Hàm này trả về một hộp giới hạn đối tượng đơn giản với định dạng

                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            35.

                                            Nhận hoặc đặt xem các nút có được khóa tự động hay không (nghĩa là nếu

                                            cytoscape({
                                              container: document.getElementById('cy'),
                                            
                                              elements: {
                                                nodes: [
                                                  {
                                                    data: { id: 'a' }
                                                  },
                                            
                                                  {
                                                    data: { id: 'b' }
                                                  }
                                                ],
                                                edges: [
                                                  {
                                                    data: { id: 'ab', source: 'a', target: 'b' }
                                                  }
                                                ]
                                              },
                                            
                                              layout: {
                                                name: 'grid',
                                                rows: 1
                                              },
                                            
                                              // so we can see the ids
                                              style: [
                                                {
                                                  selector: 'node',
                                                  style: {
                                                    'label': 'data(id)'
                                                  }
                                                }
                                              ]
                                            });
                                            
                                            06, các nút bị khóa mặc dù trạng thái riêng lẻ của chúng).

                                            Cytoscape.js không thể tự động theo dõi hộp giới hạn của chế độ xem, vì việc truy vấn DOM cho các kích thước đó có thể tốn kém. Mặc dù

                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            40 được tự động gọi cho bạn trên sự kiện
                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            44 của ____ 443, nhưng không có sự kiện
                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            44 hoặc
                                            cytoscape({
                                              container: document.getElementById('cy'),
                                            
                                              elements: {
                                                nodes: [
                                                  {
                                                    data: { id: 'a' }
                                                  },
                                            
                                                  {
                                                    data: { id: 'b' }
                                                  }
                                                ],
                                                edges: [
                                                  {
                                                    data: { id: 'ab', source: 'a', target: 'b' }
                                                  }
                                                ]
                                              },
                                            
                                              layout: {
                                                name: 'grid',
                                                rows: 1
                                              },
                                            
                                              // so we can see the ids
                                              style: [
                                                {
                                                  selector: 'node',
                                                  style: {
                                                    'label': 'data(id)'
                                                  }
                                                }
                                              ]
                                            });
                                            
                                            09 cho các yếu tố DOM tùy ý.

                                            Hoạt hình

                                            cy.animated()   

                                            Nhận liệu chế độ xem hiện đang được hoạt hình.

                                            cy.animate()       

                                            Animate the Viewport.

                                            Cy.Animate (, & NBSP; Tùy chọn)options )

                                            • Đối tượng tùy chọn chứa các chi tiết của hình ảnh động.

                                              An object containing the details of the animation.

                                              • Cấp độ zoom Zoom (số) hoặc đối tượng cấu hình zoom mà biểu đồ sẽ được hoạt hình.

                                                A zoom level (number) or a zoom configuration object to which the graph will be animated.

                                                • Cấp độ zoom để sử dụng.

                                                  The zoom level to use.

                                                • Vị trí vị trí về việc phóng to xảy ra. Điều này tự động sửa đổi PAN sao cho vị trí mô hình được chỉ định vẫn ở cùng một vị trí trong phạm vi chế độ xem trong quá trình phóng to.

                                                  The position about which zooming occurs. This automatically modifies the pan such that the specified model position remains at the same position in the viewport extent during zooming.

                                                • RenderEdPocationThe được hiển thị vị trí về việc phóng to xảy ra, như là một giải pháp thay thế cho việc sử dụng vị trí mô hình. Điều này tự động sửa đổi PAN sao cho vị trí mô hình, tương ứng với vị trí được hiển thị khi bắt đầu hoạt hình, vẫn ở cùng một vị trí trong phạm vi chế độ xem trong quá trình phóng to.

                                                  The rendered position about which zooming occurs, as an alternative to using the model position. This automatically modifies the pan such that the model position, corresponding to the rendered position at the start of the animation, remains at the same position in the viewport extent during zooming.

                                              • Vị trí Pana Panning mà đồ thị sẽ được hoạt hình.

                                                A panning position to which the graph will be animated.

                                              • Vị trí panning tương đối của Panbya mà biểu đồ sẽ được hoạt hình.

                                                A relative panning position to which the graph will be animated.

                                              • Đối tượng Fitan chứa các tùy chọn phù hợp mà biểu đồ sẽ được hoạt hình.

                                                An object containing fitting options from which the graph will be animated.

                                                • eleselements hoặc một bộ chọn mà chế độ xem sẽ được trang bị.

                                                  Elements or a selector to which the viewport will be fitted.

                                                • Paddingpadding để sử dụng với sự phù hợp (mặc định
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  25).

                                                  Padding to use with the fitting (default

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  25).

                                              • Đối tượng trung tâm chứa các tùy chọn định tâm mà biểu đồ sẽ được hoạt hình.

                                                An object containing centring options from which the graph will be animated.

                                                • eleselements hoặc một bộ chọn mà chế độ xem sẽ được tập trung.

                                                  Elements or a selector to which the viewport will be centred.

                                              • Thời lượng thời lượng của hoạt hình tính bằng mili giây.

                                                The duration of the animation in milliseconds.

                                              • Queuea Boolean cho biết có nên xếp hàng hoạt hình hay không (mặc định
                                                cytoscape({
                                                  container: document.getElementById('cy'),
                                                
                                                  elements: {
                                                    nodes: [
                                                      {
                                                        data: { id: 'a' }
                                                      },
                                                
                                                      {
                                                        data: { id: 'b' }
                                                      }
                                                    ],
                                                    edges: [
                                                      {
                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                      }
                                                    ]
                                                  },
                                                
                                                  layout: {
                                                    name: 'grid',
                                                    rows: 1
                                                  },
                                                
                                                  // so we can see the ids
                                                  style: [
                                                    {
                                                      selector: 'node',
                                                      style: {
                                                        'label': 'data(id)'
                                                      }
                                                    }
                                                  ]
                                                });
                                                
                                                06). Hoạt hình xếp hàng trên cốt lõi chạy theo thứ tự cho đến khi hàng đợi trống.

                                                A boolean indicating whether to queue the animation (default

                                                cytoscape({
                                                  container: document.getElementById('cy'),
                                                
                                                  elements: {
                                                    nodes: [
                                                      {
                                                        data: { id: 'a' }
                                                      },
                                                
                                                      {
                                                        data: { id: 'b' }
                                                      }
                                                    ],
                                                    edges: [
                                                      {
                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                      }
                                                    ]
                                                  },
                                                
                                                  layout: {
                                                    name: 'grid',
                                                    rows: 1
                                                  },
                                                
                                                  // so we can see the ids
                                                  style: [
                                                    {
                                                      selector: 'node',
                                                      style: {
                                                        'label': 'data(id)'
                                                      }
                                                    }
                                                  ]
                                                });
                                                
                                                06). Queued animations on the core run in order until the queue is empty.

                                              • Easinga
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                49 Chuỗi kiểu nới lỏng hình thành đường cong tiến trình hoạt hình.

                                                A

                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                49 easing style string that shapes the animation progress curve.

                                              • hoàn thành chức năng để gọi khi hoạt hình được thực hiện.

                                                A function to call when the animation is done.

                                              • Chức năng của Stepa để gọi mỗi khi hoạt hình bước.

                                                A function to call each time the animation steps.

                                            Ví dụ

                                            Pan và Zoom thủ công:

                                            #cy {
                                              width: 300px;
                                              height: 300px;
                                              display: block;
                                            }
                                            
                                            1

                                            Phù hợp với các yếu tố:

                                            #cy {
                                              width: 300px;
                                              height: 300px;
                                              display: block;
                                            }
                                            
                                            2

                                            cy.animation()       

                                            Cy.Animation (, & NBSP; Tùy chọn)options )

                                            • Đối tượng tùy chọn chứa các chi tiết của hình ảnh động.

                                              An object containing the details of the animation.

                                              • Cấp độ zoom Zoom (số) hoặc đối tượng cấu hình zoom mà biểu đồ sẽ được hoạt hình.

                                                A zoom level (number) or a zoom configuration object to which the graph will be animated.

                                                • Cấp độ zoom để sử dụng.

                                                  The zoom level to use.

                                                • Vị trí vị trí về việc phóng to xảy ra. Điều này tự động sửa đổi PAN sao cho vị trí mô hình được chỉ định vẫn ở cùng một vị trí trong phạm vi chế độ xem trong quá trình phóng to.

                                                  The position about which zooming occurs. This automatically modifies the pan such that the specified model position remains at the same position in the viewport extent during zooming.

                                                • RenderEdPocationThe được hiển thị vị trí về việc phóng to xảy ra, như là một giải pháp thay thế cho việc sử dụng vị trí mô hình. Điều này tự động sửa đổi PAN sao cho vị trí mô hình, tương ứng với vị trí được hiển thị khi bắt đầu hoạt hình, vẫn ở cùng một vị trí trong phạm vi chế độ xem trong quá trình phóng to.

                                                  The rendered position about which zooming occurs, as an alternative to using the model position. This automatically modifies the pan such that the model position, corresponding to the rendered position at the start of the animation, remains at the same position in the viewport extent during zooming.

                                              • Vị trí Pana Panning mà đồ thị sẽ được hoạt hình.

                                                A panning position to which the graph will be animated.

                                              • Vị trí panning tương đối của Panbya mà biểu đồ sẽ được hoạt hình.

                                                A relative panning position to which the graph will be animated.

                                              • Đối tượng Fitan chứa các tùy chọn phù hợp mà biểu đồ sẽ được hoạt hình.

                                                An object containing fitting options from which the graph will be animated.

                                                • eleselements hoặc một bộ chọn mà chế độ xem sẽ được trang bị.

                                                  Elements or a selector to which the viewport will be fitted.

                                                • Paddingpadding để sử dụng với sự phù hợp (mặc định
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  25).

                                                  Padding to use with the fitting (default

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  25).

                                              • Đối tượng trung tâm chứa các tùy chọn định tâm mà biểu đồ sẽ được hoạt hình.

                                                An object containing centring options from which the graph will be animated.

                                                • eleselements hoặc một bộ chọn mà chế độ xem sẽ được tập trung.

                                                  Elements or a selector to which the viewport will be centred.

                                              • Thời lượng thời lượng của hoạt hình tính bằng mili giây.

                                                The duration of the animation in milliseconds.

                                              • Easinga
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                49 Chuỗi kiểu nới lỏng hình thành đường cong tiến trình hoạt hình.

                                                A

                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                49 easing style string that shapes the animation progress curve.

                                              • hoàn thành chức năng để gọi khi hoạt hình được thực hiện.

                                                A function to call when the animation is done.

                                              • Chức năng của Stepa để gọi mỗi khi hoạt hình bước.

                                                A function to call each time the animation steps.

                                            cy.delay()       

                                            Ví dụ

                                            Pan và Zoom thủ công:durationcomplete )

                                            • Phù hợp với các yếu tố:

                                              How long the delay should be in milliseconds.

                                            • Cy.Animation (, & NBSP; Tùy chọn)

                                              A function to call when the delay is complete.

                                            Ví dụ

                                            #cy {
                                              width: 300px;
                                              height: 300px;
                                              display: block;
                                            }
                                            
                                            3

                                            cy.delayAnimation()       

                                            Pan và Zoom thủ công:

                                            Phù hợp với các yếu tố:duration )

                                            • Phù hợp với các yếu tố:

                                              How long the delay should be in milliseconds.

                                            cy.stop()       

                                            Cy.Animation (, & NBSP; Tùy chọn)

                                            Thêm độ trễ giữa các hình ảnh động được xếp hàng cho chế độ xem.clearQueuejumpToEnd )

                                            • cy.delay (, & nbsp; thời lượng, & nbsp; hoàn thành)

                                              A boolean (default

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              52), indicating whether the queue of animations should be emptied.

                                            • Thời lượng lâu dài, độ trễ phải tính bằng mili giây.

                                              A boolean (default

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              52), indicating whether the currently-running animations should jump to their ends rather than just stopping midway.

                                            Ví dụ

                                            #cy {
                                              width: 300px;
                                              height: 300px;
                                              display: block;
                                            }
                                            
                                            4

                                            cy.clearQueue()   

                                            Pan và Zoom thủ công:

                                            Phù hợp với các yếu tố:

                                            cy.layout()               

                                            Cy.Animation (, & NBSP; Tùy chọn)

                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            54,
                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            55,

                                            Nhận một bố cục mới, có thể được sử dụng để định vị thuật toán các nút trong biểu đồ.

                                            Cy.Layout (, & NBSP; Tùy chọn)options )

                                            • Tùy chọn Tùy chọn Bố cục.

                                              The layout options.

                                            Bạn phải chỉ định

                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            56 với tên của bố cục bạn muốn sử dụng.

                                            Hàm này tạo và trả về một đối tượng bố cục. Bạn có thể muốn giữ một tham chiếu đến bố cục cho các cơ sở USE nâng cao hơn, chẳng hạn như chạy nhiều bố cục cùng một lúc.

                                            Lưu ý rằng bạn phải gọi

                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            57 để nó ảnh hưởng đến biểu đồ.

                                            Bố cục bao gồm tất cả các phần tử trong biểu đồ tại thời điểm

                                            cytoscape({
                                              container: document.getElementById('cy'),
                                            
                                              elements: {
                                                nodes: [
                                                  {
                                                    data: { id: 'a' }
                                                  },
                                            
                                                  {
                                                    data: { id: 'b' }
                                                  }
                                                ],
                                                edges: [
                                                  {
                                                    data: { id: 'ab', source: 'a', target: 'b' }
                                                  }
                                                ]
                                              },
                                            
                                              layout: {
                                                name: 'grid',
                                                rows: 1
                                              },
                                            
                                              // so we can see the ids
                                              style: [
                                                {
                                                  selector: 'node',
                                                  style: {
                                                    'label': 'data(id)'
                                                  }
                                                }
                                              ]
                                            });
                                            
                                            76 được gọi, vì
                                            cytoscape({
                                              container: document.getElementById('cy'),
                                            
                                              elements: {
                                                nodes: [
                                                  {
                                                    data: { id: 'a' }
                                                  },
                                            
                                                  {
                                                    data: { id: 'b' }
                                                  }
                                                ],
                                                edges: [
                                                  {
                                                    data: { id: 'ab', source: 'a', target: 'b' }
                                                  }
                                                ]
                                              },
                                            
                                              layout: {
                                                name: 'grid',
                                                rows: 1
                                              },
                                            
                                              // so we can see the ids
                                              style: [
                                                {
                                                  selector: 'node',
                                                  style: {
                                                    'label': 'data(id)'
                                                  }
                                                }
                                              ]
                                            });
                                            
                                            76 tương đương với
                                            var a = cy.$('#a'); // assume a compound node
                                            
                                            // the neighbourhood of `a` contains directly connected elements
                                            var directlyConnected = a.neighborhood();
                                            
                                            // you may want everything connected to its descendants instead
                                            // because the descendants "belong" to `a`
                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                            
                                            60. Bạn có thể sử dụng
                                            cytoscape({
                                              container: document.getElementById('cy'),
                                            
                                              elements: {
                                                nodes: [
                                                  {
                                                    data: { id: 'a' }
                                                  },
                                            
                                                  {
                                                    data: { id: 'b' }
                                                  }
                                                ],
                                                edges: [
                                                  {
                                                    data: { id: 'ab', source: 'a', target: 'b' }
                                                  }
                                                ]
                                              },
                                            
                                              layout: {
                                                name: 'grid',
                                                rows: 1
                                              },
                                            
                                              // so we can see the ids
                                              style: [
                                                {
                                                  selector: 'node',
                                                  style: {
                                                    'label': 'data(id)'
                                                  }
                                                }
                                              ]
                                            });
                                            
                                            77 để chạy bố cục trên một tập hợp con của các phần tử trong biểu đồ.

                                            Ví dụ

                                            #cy {
                                              width: 300px;
                                              height: 300px;
                                              display: block;
                                            }
                                            
                                            5

                                            Phong cách

                                            cy.style()           

                                            Nhận điểm vào để sửa đổi kiểu hình ảnh của biểu đồ sau khi khởi tạo.

                                            cy.style()

                                            Nhận đối tượng kiểu hiện tại.

                                              Cy.Style (, & nbsp; styleSheet)stylesheet )

                                              Gán một bảng kiểu mới để thay thế một kiểu hiện có.

                                              • styleSheeTeere một đối tượng
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                62, bảng kiểu chuỗi hoặc bảng kiểu json (các định dạng tương tự được chấp nhận cho
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                63 khi khởi tạo).

                                                Either a

                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                62 object, a string stylesheet, or a JSON stylesheet (the same formats accepted for
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                63 at initialisation).

                                              Thông tin chi tiết

                                              Bạn có thể sử dụng chức năng này để có quyền truy cập vào phong cách trực quan (bảng kiểu) sau khi khởi tạo. Điều này rất hữu ích nếu bạn cần thay đổi toàn bộ bảng kiểu trong thời gian chạy.

                                              Đặt một kiểu mới bằng cách tham khảo:

                                              #cy {
                                                width: 300px;
                                                height: 300px;
                                                display: block;
                                              }
                                              
                                              6

                                              Đặt một kiểu hoàn toàn mới cho biểu đồ, chỉ định các bộ chọn và thuộc tính kiểu thông qua các cuộc gọi chức năng:

                                              #cy {
                                                width: 300px;
                                                height: 300px;
                                                display: block;
                                              }
                                              
                                              7

                                              Đặt bảng kiểu hoàn toàn mới (không có bảng kiểu mặc định làm cơ sở):

                                              #cy {
                                                width: 300px;
                                                height: 300px;
                                                display: block;
                                              }
                                              
                                              8

                                              Thêm vào bảng kiểu hiện có:

                                              #cy {
                                                width: 300px;
                                                height: 300px;
                                                display: block;
                                              }
                                              
                                              9

                                              Đặt phong cách từ Plain Json:

                                              npm install cytoscape
                                              
                                              0

                                              Đặt kiểu từ một chuỗi kiểu (mà bạn có thể sẽ lấy từ một tệp trên máy chủ của mình):

                                              npm install cytoscape
                                              
                                              1

                                              Nhận phong cách hiện tại là JSON:

                                              npm install cytoscape
                                              
                                              2

                                              Xuất khẩu

                                              cy.png()       

                                              Xuất chế độ xem biểu đồ hiện tại dưới dạng hình ảnh PNG.

                                              cy.png (, & nbsp; tùy chọn)options )

                                              • Tùy chọn Tùy chọn xuất khẩu.

                                                The export options.

                                                • đầu ra cho ra đầu ra phải là
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  64 (mặc định),
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  65,
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  66 hoặc
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  67 (một lời hứa sẽ giải quyết cho Blob được trả về).

                                                  Whether the output should be

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  64 (default),
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  65,
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  66, or
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  67 (a promise that resolves to the blob is returned).

                                                • BGTHE Màu nền của hình ảnh (trong suốt theo mặc định).

                                                  The background colour of the image (transparent by default).

                                                • Toàn bộ để xuất chế độ xem hiện tại (
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  52, mặc định) hoặc toàn bộ biểu đồ (
                                                  cytoscape({
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: {
                                                      nodes: [
                                                        {
                                                          data: { id: 'a' }
                                                        },
                                                  
                                                        {
                                                          data: { id: 'b' }
                                                        }
                                                      ],
                                                      edges: [
                                                        {
                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                        }
                                                      ]
                                                    },
                                                  
                                                    layout: {
                                                      name: 'grid',
                                                      rows: 1
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  });
                                                  
                                                  06).

                                                  Whether to export the current viewport view (

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  52, default) or the entire graph (
                                                  cytoscape({
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: {
                                                      nodes: [
                                                        {
                                                          data: { id: 'a' }
                                                        },
                                                  
                                                        {
                                                          data: { id: 'b' }
                                                        }
                                                      ],
                                                      edges: [
                                                        {
                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                        }
                                                      ]
                                                    },
                                                  
                                                    layout: {
                                                      name: 'grid',
                                                      rows: 1
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  });
                                                  
                                                  06).

                                                • Giá trị scorethis chỉ định một số dương có tỷ lệ kích thước của hình ảnh kết quả.

                                                  This value specifies a positive number that scales the size of the resultant image.

                                                • MAXWIDTHSPECFIED Tỷ lệ tự động kết hợp với
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70 sao cho hình ảnh kết quả không rộng hơn
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71.

                                                  Specifies the scale automatically in combination with

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70 such that the resultant image is no wider than
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71.

                                                • MaxHeightSpecify quy mô tự động kết hợp với
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71 sao cho hình ảnh kết quả không cao hơn
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70.

                                                  Specifies the scale automatically in combination with

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71 such that the resultant image is no taller than
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70.

                                              Thông tin chi tiết

                                              Bạn có thể sử dụng chức năng này để có quyền truy cập vào phong cách trực quan (bảng kiểu) sau khi khởi tạo. Điều này rất hữu ích nếu bạn cần thay đổi toàn bộ bảng kiểu trong thời gian chạy.

                                              Đặt một kiểu mới bằng cách tham khảo:

                                              Ví dụ

                                              npm install cytoscape
                                              
                                              3

                                              Phong cách

                                              cy.jpg()           

                                              Nhận điểm vào để sửa đổi kiểu hình ảnh của biểu đồ sau khi khởi tạo.

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              77,

                                              Nhận đối tượng kiểu hiện tại.

                                              Cy.Style (, & nbsp; styleSheet)options )

                                              • Tùy chọn Tùy chọn xuất khẩu.

                                                The export options.

                                                • đầu ra cho ra đầu ra phải là
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  64 (mặc định),
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  65,
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  66 hoặc
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  67 (một lời hứa sẽ giải quyết cho Blob được trả về).

                                                  Whether the output should be

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  64 (default),
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  65,
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  66, or
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  67 (a promise that resolves to the blob is returned).

                                                • BGTHE Màu nền của hình ảnh (trong suốt theo mặc định).

                                                  The background colour of the image (white by default).

                                                • Toàn bộ để xuất chế độ xem hiện tại (
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  52, mặc định) hoặc toàn bộ biểu đồ (
                                                  cytoscape({
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: {
                                                      nodes: [
                                                        {
                                                          data: { id: 'a' }
                                                        },
                                                  
                                                        {
                                                          data: { id: 'b' }
                                                        }
                                                      ],
                                                      edges: [
                                                        {
                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                        }
                                                      ]
                                                    },
                                                  
                                                    layout: {
                                                      name: 'grid',
                                                      rows: 1
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  });
                                                  
                                                  06).

                                                  Whether to export the current viewport view (

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  52, default) or the entire graph (
                                                  cytoscape({
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: {
                                                      nodes: [
                                                        {
                                                          data: { id: 'a' }
                                                        },
                                                  
                                                        {
                                                          data: { id: 'b' }
                                                        }
                                                      ],
                                                      edges: [
                                                        {
                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                        }
                                                      ]
                                                    },
                                                  
                                                    layout: {
                                                      name: 'grid',
                                                      rows: 1
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  });
                                                  
                                                  06).

                                                • Giá trị scorethis chỉ định một số dương có tỷ lệ kích thước của hình ảnh kết quả.

                                                  This value specifies a positive number that scales the size of the resultant image.

                                                • MAXWIDTHSPECFIED Tỷ lệ tự động kết hợp với
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70 sao cho hình ảnh kết quả không rộng hơn
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71.

                                                  Specifies the scale automatically in combination with

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70 such that the resultant image is no wider than
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71.

                                                • MaxHeightSpecify quy mô tự động kết hợp với
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71 sao cho hình ảnh kết quả không cao hơn
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70.

                                                  Specifies the scale automatically in combination with

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71 such that the resultant image is no taller than
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70.

                                                • Hàm này xuất biểu đồ hiện đang được kết xuất dưới dạng hình ảnh, vì vậy bạn không được gọi chức năng này trên một thể hiện không đầu. Theo mặc định, việc xuất có tính đến mật độ pixel màn hình hiện tại để hình ảnh có cùng chất lượng của màn hình. Nếu các tùy chọn
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  71 hoặc
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  70 được chỉ định, thì mật độ pixel màn hình bị bỏ qua để hình ảnh có thể phù hợp với kích thước được chỉ định.

                                                  Specifies the quality of the image from

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  25 (low quality, low filesize) to
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  89 (high quality, high filesize). If not set, the browser’s default quality value is used.

                                              Thông tin chi tiết

                                              Bạn có thể sử dụng chức năng này để có quyền truy cập vào phong cách trực quan (bảng kiểu) sau khi khởi tạo. Điều này rất hữu ích nếu bạn cần thay đổi toàn bộ bảng kiểu trong thời gian chạy.

                                              Chỉ định

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              76 là cách duy nhất để làm cho chức năng này không chặn. Các đầu ra khác có thể treo trình duyệt cho đến khi hoàn thành, đặc biệt là cho một hình ảnh lớn.

                                              Định dạng JPEG là mất, trong khi PNG thì không. Điều này có nghĩa là

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              93 rất hữu ích cho các trường hợp tập tin hóa quan trọng hơn hình ảnh hoàn hảo pixel. Nén JPEG sẽ làm cho hình ảnh của bạn (đặc biệt là các đường cạnh) mờ và bị biến dạng.

                                              Ví dụ

                                              npm install cytoscape
                                              
                                              4

                                              Ví dụ thẻ hình ảnh:

                                              cy.json()           

                                              Nhập hoặc xuất biểu đồ theo cùng định dạng JSON được sử dụng khi khởi tạo.

                                              Cy.Json (, & nbsp; Flatele)flatEles )

                                              Xuất biểu đồ dưới dạng JSON.

                                              • Flateleshether JSON Resulant nên bao gồm các phần tử dưới dạng mảng phẳng (
                                                cytoscape({
                                                  container: document.getElementById('cy'),
                                                
                                                  elements: {
                                                    nodes: [
                                                      {
                                                        data: { id: 'a' }
                                                      },
                                                
                                                      {
                                                        data: { id: 'b' }
                                                      }
                                                    ],
                                                    edges: [
                                                      {
                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                      }
                                                    ]
                                                  },
                                                
                                                  layout: {
                                                    name: 'grid',
                                                    rows: 1
                                                  },
                                                
                                                  // so we can see the ids
                                                  style: [
                                                    {
                                                      selector: 'node',
                                                      style: {
                                                        'label': 'data(id)'
                                                      }
                                                    }
                                                  ]
                                                });
                                                
                                                06) hoặc là hai mảng có khóa theo nhóm (
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                52, mặc định).

                                                Whether the resulant JSON should include the elements as a flat array (

                                                cytoscape({
                                                  container: document.getElementById('cy'),
                                                
                                                  elements: {
                                                    nodes: [
                                                      {
                                                        data: { id: 'a' }
                                                      },
                                                
                                                      {
                                                        data: { id: 'b' }
                                                      }
                                                    ],
                                                    edges: [
                                                      {
                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                      }
                                                    ]
                                                  },
                                                
                                                  layout: {
                                                    name: 'grid',
                                                    rows: 1
                                                  },
                                                
                                                  // so we can see the ids
                                                  style: [
                                                    {
                                                      selector: 'node',
                                                      style: {
                                                        'label': 'data(id)'
                                                      }
                                                    }
                                                  ]
                                                });
                                                
                                                06) or as two keyed arrays by group (
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                52, default).

                                              Cy.json (, & NBSP; Cyjson)cyJson )

                                              Nhập biểu đồ dưới dạng JSON, chỉ cập nhật các trường được chỉ định.

                                              • đối tượng cyjsonthe với các trường tương ứng với các trạng thái nên được thay đổi.

                                                The object with the fields corresponding to the states that should be changed.

                                              Thông tin chi tiết

                                              Hàm này trả về cùng một đối tượng được sử dụng để khởi tạo. Bạn sẽ thấy chức năng này hữu ích nếu bạn muốn lưu toàn bộ trạng thái của biểu đồ, cho mục đích của riêng bạn hoặc để khôi phục trạng thái biểu đồ đó trong tương lai.

                                              Hàm này cũng có thể được sử dụng để đặt trạng thái đồ thị như trong

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              96, trong đó mỗi trường trong
                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              97 sẽ bị đột biến trong biểu đồ. Đối với mỗi trường được xác định trong
                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              97,
                                              cytoscape({
                                              
                                                container: document.getElementById('cy'),
                                              
                                                elements: [ // flat array of nodes and edges
                                                  { // node n1
                                                    group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                    // NB the group field can be automatically inferred for you but specifying it
                                                    // gives you nice debug messages if you mis-init elements
                                              
                                              
                                                    data: { // element data (put json serialisable dev data here)
                                                      id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                      parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                      // (`parent` can be effectively changed by `eles.move()`)
                                                    },
                                              
                                                    // scratchpad data (usually temp or nonserialisable data)
                                                    scratch: {
                                                      _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                    },
                                              
                                                    position: { // the model position of the node (optional on init, mandatory after)
                                                      x: 100,
                                                      y: 100
                                                    },
                                              
                                                    selected: false, // whether the element is selected (default false)
                                              
                                                    selectable: true, // whether the selection state is mutable (default true)
                                              
                                                    locked: false, // when locked a node's position is immutable (default false)
                                              
                                                    grabbable: true, // whether the node can be grabbed and moved by the user
                                              
                                                    pannable: false, // whether dragging the node causes panning instead of grabbing
                                              
                                                    classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                              
                                                    // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                    // USE THE STYLESHEET INSTEAD
                                                    style: { // style property overrides 
                                                      'background-color': 'red'
                                                    }
                                                  },
                                              
                                                  { // node n2
                                                    data: { id: 'n2' },
                                                    renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                  },
                                              
                                                  { // node n3
                                                    data: { id: 'n3', parent: 'nparent' },
                                                    position: { x: 123, y: 234 }
                                                  },
                                              
                                                  { // node nparent
                                                    data: { id: 'nparent' }
                                                  },
                                              
                                                  { // edge e1
                                                    data: {
                                                      id: 'e1',
                                                      // inferred as an edge because `source` and `target` are specified:
                                                      source: 'n1', // the source node id (edge comes from this node)
                                                      target: 'n2'  // the target node id (edge goes to this node)
                                                      // (`source` and `target` can be effectively changed by `eles.move()`)
                                                    },
                                              
                                                    pannable: true // whether dragging on the edge causes panning
                                                  }
                                                ],
                                              
                                                layout: {
                                                  name: 'preset'
                                                },
                                              
                                                // so we can see the ids
                                                style: [
                                                  {
                                                    selector: 'node',
                                                    style: {
                                                      'label': 'data(id)'
                                                    }
                                                  }
                                                ]
                                              
                                              });
                                              
                                              60 được cập nhật để phù hợp với các sự kiện tương ứng phát ra. Điều này cho phép các thay đổi khai báo trên biểu đồ được thực hiện.

                                              Đối với

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              96, tất cả các tùy chọn khởi tạo có thể thay đổi được hỗ trợ.

                                              Khi cài đặt

                                              <script src="cytoscape.min.js">script>
                                              
                                              01

                                              • Các yếu tố bao gồm bị đột biến theo quy định (nghĩa là chúng sẽ là
                                                <script src="cytoscape.min.js">script>
                                                
                                                02),
                                              • các phần tử đi kèm không có trong biểu đồ được thêm vào và
                                              • Các yếu tố không bao gồm được loại bỏ khỏi biểu đồ.

                                              Lưu ý rằng việc cập nhật các thành phần biểu đồ bằng

                                              <script src="cytoscape.min.js">script>
                                              
                                              03 yêu cầu tất cả các yếu tố phải có thuộc tính ID. Các yếu tố không có ID sẽ bị bỏ qua.

                                              Khi cài đặt

                                              <script src="cytoscape.min.js">script>
                                              
                                              04

                                              • toàn bộ bảng kiểu được thay thế và
                                              • Phong cách được tính toán lại cho từng yếu tố.

                                              Cập nhật bảng kiểu là đắt tiền. Tương tự, nó có khả năng tốn kém khi cập nhật các phần tử hiện có cho các biểu đồ lớn - vì mỗi phần tử cần được xem xét và có khả năng mỗi trường trên mỗi phần tử. Đối với các yếu tố, một tùy chọn rẻ hơn nhiều là gọi một cách có chọn lọc

                                              <script src="cytoscape.min.js">script>
                                              
                                              05 chỉ với các trường cần được cập nhật.

                                              Ví dụ

                                              npm install cytoscape
                                              
                                              5
                                              npm install cytoscape
                                              
                                              6

                                              Bộ sưu tập

                                              Một bộ sưu tập chứa một tập hợp các nút và cạnh. Gọi một hàm áp dụng chức năng cho tất cả các yếu tố trong bộ sưu tập. Khi đọc các giá trị từ một bộ sưu tập, ví dụ

                                              cytoscape({
                                                container: document.getElementById('cy'),
                                              
                                                elements: {
                                                  nodes: [
                                                    {
                                                      data: { id: 'a' }
                                                    },
                                              
                                                    {
                                                      data: { id: 'b' }
                                                    }
                                                  ],
                                                  edges: [
                                                    {
                                                      data: { id: 'ab', source: 'a', target: 'b' }
                                                    }
                                                  ]
                                                },
                                              
                                                layout: {
                                                  name: 'grid',
                                                  rows: 1
                                                },
                                              
                                                // so we can see the ids
                                                style: [
                                                  {
                                                    selector: 'node',
                                                    style: {
                                                      'label': 'data(id)'
                                                    }
                                                  }
                                                ]
                                              });
                                              
                                              84, giá trị của phần tử đầu tiên trong bộ sưu tập được trả về. Ví dụ:

                                              npm install cytoscape
                                              
                                              7

                                              Bạn có thể đảm bảo rằng bạn đã đọc từ phần tử bạn muốn bằng cách sử dụng bộ chọn để thu hẹp bộ sưu tập thành một phần tử (tức là

                                              <script src="cytoscape.min.js">script>
                                              
                                              07) hoặc hàm
                                              <script src="cytoscape.min.js">script>
                                              
                                              08.

                                              Cũng lưu ý rằng các bộ sưu tập có thể lặp lại cho các trình duyệt hiện đại hỗ trợ các giao thức lặp. Điều này cho phép sử dụng các tính năng như toán tử lan rộng, các vòng lặp và phá hủy.

                                              Thao tác đồ thị

                                              ele.cy()   

                                              Có được thể hiện cốt lõi sở hữu yếu tố.

                                              eles.remove()   

                                              Hủy bỏ các phần tử khỏi biểu đồ và trả về tất cả các phần tử được xóa bởi cuộc gọi này.

                                              Thông tin chi tiết

                                              Hàm này trả về cùng một đối tượng được sử dụng để khởi tạo. Bạn sẽ thấy chức năng này hữu ích nếu bạn muốn lưu toàn bộ trạng thái của biểu đồ, cho mục đích của riêng bạn hoặc để khôi phục trạng thái biểu đồ đó trong tương lai.

                                              Hàm này cũng có thể được sử dụng để đặt trạng thái đồ thị như trong

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              96, trong đó mỗi trường trong
                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              97 sẽ bị đột biến trong biểu đồ. Đối với mỗi trường được xác định trong
                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              97,
                                              cytoscape({
                                              
                                                container: document.getElementById('cy'),
                                              
                                                elements: [ // flat array of nodes and edges
                                                  { // node n1
                                                    group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                    // NB the group field can be automatically inferred for you but specifying it
                                                    // gives you nice debug messages if you mis-init elements
                                              
                                              
                                                    data: { // element data (put json serialisable dev data here)
                                                      id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                      parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                      // (`parent` can be effectively changed by `eles.move()`)
                                                    },
                                              
                                                    // scratchpad data (usually temp or nonserialisable data)
                                                    scratch: {
                                                      _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                    },
                                              
                                                    position: { // the model position of the node (optional on init, mandatory after)
                                                      x: 100,
                                                      y: 100
                                                    },
                                              
                                                    selected: false, // whether the element is selected (default false)
                                              
                                                    selectable: true, // whether the selection state is mutable (default true)
                                              
                                                    locked: false, // when locked a node's position is immutable (default false)
                                              
                                                    grabbable: true, // whether the node can be grabbed and moved by the user
                                              
                                                    pannable: false, // whether dragging the node causes panning instead of grabbing
                                              
                                                    classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                              
                                                    // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                    // USE THE STYLESHEET INSTEAD
                                                    style: { // style property overrides 
                                                      'background-color': 'red'
                                                    }
                                                  },
                                              
                                                  { // node n2
                                                    data: { id: 'n2' },
                                                    renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                  },
                                              
                                                  { // node n3
                                                    data: { id: 'n3', parent: 'nparent' },
                                                    position: { x: 123, y: 234 }
                                                  },
                                              
                                                  { // node nparent
                                                    data: { id: 'nparent' }
                                                  },
                                              
                                                  { // edge e1
                                                    data: {
                                                      id: 'e1',
                                                      // inferred as an edge because `source` and `target` are specified:
                                                      source: 'n1', // the source node id (edge comes from this node)
                                                      target: 'n2'  // the target node id (edge goes to this node)
                                                      // (`source` and `target` can be effectively changed by `eles.move()`)
                                                    },
                                              
                                                    pannable: true // whether dragging on the edge causes panning
                                                  }
                                                ],
                                              
                                                layout: {
                                                  name: 'preset'
                                                },
                                              
                                                // so we can see the ids
                                                style: [
                                                  {
                                                    selector: 'node',
                                                    style: {
                                                      'label': 'data(id)'
                                                    }
                                                  }
                                                ]
                                              
                                              });
                                              
                                              60 được cập nhật để phù hợp với các sự kiện tương ứng phát ra. Điều này cho phép các thay đổi khai báo trên biểu đồ được thực hiện.

                                              Ví dụ

                                              Đối với

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              96, tất cả các tùy chọn khởi tạo có thể thay đổi được hỗ trợ.

                                              npm install cytoscape
                                              
                                              8

                                              ele.removed()   

                                              Khi cài đặt

                                              <script src="cytoscape.min.js">script>
                                              
                                              01

                                              ele.inside()   

                                              Các yếu tố bao gồm bị đột biến theo quy định (nghĩa là chúng sẽ là

                                              <script src="cytoscape.min.js">script>
                                              
                                              02),

                                              eles.restore()   

                                              các phần tử đi kèm không có trong biểu đồ được thêm vào và

                                              Thông tin chi tiết

                                              Hàm này trả về cùng một đối tượng được sử dụng để khởi tạo. Bạn sẽ thấy chức năng này hữu ích nếu bạn muốn lưu toàn bộ trạng thái của biểu đồ, cho mục đích của riêng bạn hoặc để khôi phục trạng thái biểu đồ đó trong tương lai.

                                              Hàm này cũng có thể được sử dụng để đặt trạng thái đồ thị như trong

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              96, trong đó mỗi trường trong
                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              97 sẽ bị đột biến trong biểu đồ. Đối với mỗi trường được xác định trong
                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              97,
                                              cytoscape({
                                              
                                                container: document.getElementById('cy'),
                                              
                                                elements: [ // flat array of nodes and edges
                                                  { // node n1
                                                    group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                    // NB the group field can be automatically inferred for you but specifying it
                                                    // gives you nice debug messages if you mis-init elements
                                              
                                              
                                                    data: { // element data (put json serialisable dev data here)
                                                      id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                      parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                      // (`parent` can be effectively changed by `eles.move()`)
                                                    },
                                              
                                                    // scratchpad data (usually temp or nonserialisable data)
                                                    scratch: {
                                                      _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                    },
                                              
                                                    position: { // the model position of the node (optional on init, mandatory after)
                                                      x: 100,
                                                      y: 100
                                                    },
                                              
                                                    selected: false, // whether the element is selected (default false)
                                              
                                                    selectable: true, // whether the selection state is mutable (default true)
                                              
                                                    locked: false, // when locked a node's position is immutable (default false)
                                              
                                                    grabbable: true, // whether the node can be grabbed and moved by the user
                                              
                                                    pannable: false, // whether dragging the node causes panning instead of grabbing
                                              
                                                    classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                              
                                                    // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                    // USE THE STYLESHEET INSTEAD
                                                    style: { // style property overrides 
                                                      'background-color': 'red'
                                                    }
                                                  },
                                              
                                                  { // node n2
                                                    data: { id: 'n2' },
                                                    renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                  },
                                              
                                                  { // node n3
                                                    data: { id: 'n3', parent: 'nparent' },
                                                    position: { x: 123, y: 234 }
                                                  },
                                              
                                                  { // node nparent
                                                    data: { id: 'nparent' }
                                                  },
                                              
                                                  { // edge e1
                                                    data: {
                                                      id: 'e1',
                                                      // inferred as an edge because `source` and `target` are specified:
                                                      source: 'n1', // the source node id (edge comes from this node)
                                                      target: 'n2'  // the target node id (edge goes to this node)
                                                      // (`source` and `target` can be effectively changed by `eles.move()`)
                                                    },
                                              
                                                    pannable: true // whether dragging on the edge causes panning
                                                  }
                                                ],
                                              
                                                layout: {
                                                  name: 'preset'
                                                },
                                              
                                                // so we can see the ids
                                                style: [
                                                  {
                                                    selector: 'node',
                                                    style: {
                                                      'label': 'data(id)'
                                                    }
                                                  }
                                                ]
                                              
                                              });
                                              
                                              60 được cập nhật để phù hợp với các sự kiện tương ứng phát ra. Điều này cho phép các thay đổi khai báo trên biểu đồ được thực hiện.

                                              Ví dụ

                                              npm install cytoscape
                                              
                                              9

                                              eles.clone()       

                                              Đối với

                                              var a = cy.$('#a'); // assume a compound node
                                              
                                              // the neighbourhood of `a` contains directly connected elements
                                              var directlyConnected = a.neighborhood();
                                              
                                              // you may want everything connected to its descendants instead
                                              // because the descendants "belong" to `a`
                                              var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                              
                                              96, tất cả các tùy chọn khởi tạo có thể thay đổi được hỗ trợ.
                                              <script src="cytoscape.min.js">script>
                                              
                                              10,

                                              Khi cài đặt

                                              <script src="cytoscape.min.js">script>
                                              
                                              01

                                              Các yếu tố bao gồm bị đột biến theo quy định (nghĩa là chúng sẽ là

                                              <script src="cytoscape.min.js">script>
                                              
                                              02), et al      

                                              các phần tử đi kèm không có trong biểu đồ được thêm vào và

                                              các cạnh.move (, & nbsp; vị trí)location )

                                              Thay đổi nguồn, mục tiêu hoặc cả nguồn và mục tiêu.

                                              • Vị trí nơi các cạnh được di chuyển. Bạn có thể chỉ định một nguồn mới, một mục tiêu mới hoặc cả hai.

                                                Where the edges are moved. You can specify a new source, a new target, or both.

                                                • ID Sourcethe của nút nguồn mới.

                                                  The ID of the new source node.

                                                • mục tiêu ID của nút mục tiêu mới.

                                                  The ID of the new target node.

                                              các nút.move (, & nbsp; vị trí)location )

                                              Thay đổi cha mẹ.

                                              • Vị trí nơi các nút được di chuyển.

                                                Where the nodes are moved.

                                                • Phụ huynh ID của nút cha mới (sử dụng
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  11 cho không cha mẹ).

                                                  The ID of the new parent node (use

                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  11 for no parent).

                                              Thông tin chi tiết

                                              Hàm này di chuyển các yếu tố tại chỗ, do đó không có sự kiện

                                              <script src="cytoscape.min.js">script>
                                              
                                              15 hoặc
                                              <script src="cytoscape.min.js">script>
                                              
                                              16 được tạo ra. Một sự kiện
                                              <script src="cytoscape.min.js">script>
                                              
                                              17 được phát ra trên các yếu tố di chuyển.

                                              Ví dụ

                                              Di chuyển một cạnh:

                                              import cytoscape from 'cytoscape';
                                              
                                              0

                                              Sự kiện

                                              eles.on()                   

                                              Bí danh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              18,
                                              <script src="cytoscape.min.js">script>
                                              
                                              19,
                                              <script src="cytoscape.min.js">script>
                                              
                                              20,
                                              <script src="cytoscape.min.js">script>
                                              
                                              18,
                                              <script src="cytoscape.min.js">script>
                                              
                                              19,
                                              <script src="cytoscape.min.js">script>
                                              
                                              20,

                                              Nghe các sự kiện xảy ra trên các yếu tố.

                                              eles.on (, & nbsp; sự kiện [, & nbsp; selector], & nbsp; function (sự kiện))events [selector]function(event) )

                                              • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                A space separated list of event names.

                                              • Bộ chọn [Tùy chọn] Một bộ chọn đại biểu để chỉ định các phần tử con mà người xử lý chạy. [optional]

                                                A delegate selector to specify child elements for which the handler runs.

                                              • Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                The handler function that is called when one of the specified events occurs.

                                                • Sự kiện đối tượng sự kiện.

                                                  The event object.

                                              Thông tin chi tiết

                                              Hàm này di chuyển các yếu tố tại chỗ, do đó không có sự kiện

                                              <script src="cytoscape.min.js">script>
                                              
                                              15 hoặc
                                              <script src="cytoscape.min.js">script>
                                              
                                              16 được tạo ra. Một sự kiện
                                              <script src="cytoscape.min.js">script>
                                              
                                              17 được phát ra trên các yếu tố di chuyển.

                                              Ví dụ

                                              import cytoscape from 'cytoscape';
                                              
                                              1

                                              eles.promiseOn()           

                                              Di chuyển một cạnh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              23,

                                              Sự kiện

                                              Bí danh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              18,
                                              <script src="cytoscape.min.js">script>
                                              
                                              19,
                                              <script src="cytoscape.min.js">script>
                                              
                                              20,events [selector] )

                                              • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                A space separated list of event names.

                                              • Bộ chọn [Tùy chọn] Một bộ chọn đại biểu để chỉ định các phần tử con mà người xử lý chạy. [optional]

                                                A selector to specify elements for which the handler is emitted.

                                              Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                              import cytoscape from 'cytoscape';
                                              
                                              2

                                              eles.one()       

                                              Sự kiện đối tượng sự kiện.

                                              Các sự kiện chỉ bị ràng buộc với các yếu tố hiện có; Chúng phải tồn tại tại thời điểm mã của bạn thực hiện cuộc gọi đến

                                              <script src="cytoscape.min.js">script>
                                              
                                              21. Ngoài ra, sử dụng trình xử lý sự kiện cốt lõi (
                                              <script src="cytoscape.min.js">script>
                                              
                                              22) để đính kèm trình xử lý sự kiện.events [selector]function(event) )

                                              • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                A space separated list of event names.

                                              • Bộ chọn [Tùy chọn] Một bộ chọn đại biểu để chỉ định các phần tử con mà người xử lý chạy. [optional]

                                                A delegate selector to specify child elements for which the handler runs.

                                              • Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                The handler function that is called when one of the specified events occurs.

                                                • Sự kiện đối tượng sự kiện.

                                                  The event object.

                                              Thông tin chi tiết

                                              Hàm này di chuyển các yếu tố tại chỗ, do đó không có sự kiện

                                              <script src="cytoscape.min.js">script>
                                              
                                              15 hoặc
                                              <script src="cytoscape.min.js">script>
                                              
                                              16 được tạo ra. Một sự kiện
                                              <script src="cytoscape.min.js">script>
                                              
                                              17 được phát ra trên các yếu tố di chuyển.

                                              Ví dụ

                                              Ví dụ

                                              import cytoscape from 'cytoscape';
                                              
                                              3

                                              eles.once()       

                                              Di chuyển một cạnh:

                                              Sự kiệnevents [selector]function(event) )

                                              • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                A space separated list of event names.

                                              • Bộ chọn [Tùy chọn] Một bộ chọn đại biểu để chỉ định các phần tử con mà người xử lý chạy. [optional]

                                                A delegate selector to specify child elements for which the handler runs.

                                              • Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                The handler function that is called when one of the specified events occurs.

                                                • Sự kiện đối tượng sự kiện.

                                                  The event object.

                                              Thông tin chi tiết

                                              Hàm này di chuyển các yếu tố tại chỗ, do đó không có sự kiện

                                              <script src="cytoscape.min.js">script>
                                              
                                              15 hoặc
                                              <script src="cytoscape.min.js">script>
                                              
                                              16 được tạo ra. Một sự kiện
                                              <script src="cytoscape.min.js">script>
                                              
                                              17 được phát ra trên các yếu tố di chuyển.

                                              Ví dụ

                                              import cytoscape from 'cytoscape';
                                              
                                              4

                                              eles.removeListener()                   

                                              Di chuyển một cạnh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              24,
                                              <script src="cytoscape.min.js">script>
                                              
                                              25,
                                              <script src="cytoscape.min.js">script>
                                              
                                              26,

                                              Sự kiện

                                              Bí danh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              18,
                                              <script src="cytoscape.min.js">script>
                                              
                                              19,
                                              <script src="cytoscape.min.js">script>
                                              
                                              20,events [selector] [handler] )

                                              • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                A space separated list of event names.

                                              • Bộ chọn [Tùy chọn] Một bộ chọn đại biểu để chỉ định các phần tử con mà người xử lý chạy. [optional]

                                                The same delegate selector used to listen to the events.

                                              • Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra. [optional]

                                                A reference to the handler function to remove.

                                              Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                              import cytoscape from 'cytoscape';
                                              
                                              5

                                              eles.removeAllListeners()   

                                              Sự kiện đối tượng sự kiện.

                                              eles.emit()           

                                              Các sự kiện chỉ bị ràng buộc với các yếu tố hiện có; Chúng phải tồn tại tại thời điểm mã của bạn thực hiện cuộc gọi đến

                                              <script src="cytoscape.min.js">script>
                                              
                                              21. Ngoài ra, sử dụng trình xử lý sự kiện cốt lõi (
                                              <script src="cytoscape.min.js">script>
                                              
                                              22) để đính kèm trình xử lý sự kiện.
                                              <script src="cytoscape.min.js">script>
                                              
                                              27,

                                              Bí danh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              23,

                                              Nhận một lời hứa được giải quyết lần đầu tiên bất kỳ yếu tố nào phát ra bất kỳ sự kiện được chỉ định nào.events [extraParams] )

                                              • eles.promiseon (, & nbsp; sự kiện [, & nbsp; selector]))

                                                A list of event names to emit (either a space-separated string or an array)

                                              • Bộ chọn [Tùy chọn] Một bộ chọn để chỉ định các yếu tố mà trình xử lý được phát ra. [optional]

                                                An array of additional parameters to pass to the handler.

                                              Ví dụ

                                              import cytoscape from 'cytoscape';
                                              
                                              6

                                              Di chuyển một cạnh:

                                              Sự kiện et al            

                                              Bí danh:

                                              <script src="cytoscape.min.js">script>
                                              
                                              18,
                                              <script src="cytoscape.min.js">script>
                                              
                                              19,
                                              <script src="cytoscape.min.js">script>
                                              
                                              20,
                                              <script src="cytoscape.min.js">script>
                                              
                                              28,

                                              Nghe các sự kiện xảy ra trên các yếu tố.

                                              ele.data()

                                              eles.on (, & nbsp; sự kiện [, & nbsp; selector], & nbsp; function (sự kiện))

                                                Không gian Eventa phân tách danh sách các tên sự kiện.name )

                                                Bộ chọn [Tùy chọn] Một bộ chọn đại biểu để chỉ định các phần tử con mà người xử lý chạy.

                                                • Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                  The name of the field to get.

                                                Sự kiện đối tượng sự kiện.namevalue )

                                                Các sự kiện chỉ bị ràng buộc với các yếu tố hiện có; Chúng phải tồn tại tại thời điểm mã của bạn thực hiện cuộc gọi đến

                                                <script src="cytoscape.min.js">script>
                                                
                                                21. Ngoài ra, sử dụng trình xử lý sự kiện cốt lõi (
                                                <script src="cytoscape.min.js">script>
                                                
                                                22) để đính kèm trình xử lý sự kiện.

                                                • Bí danh:
                                                  <script src="cytoscape.min.js">script>
                                                  
                                                  23,

                                                  The name of the field to set.

                                                • Nhận một lời hứa được giải quyết lần đầu tiên bất kỳ yếu tố nào phát ra bất kỳ sự kiện được chỉ định nào.

                                                  The value to set for the field.

                                                eles.promiseon (, & nbsp; sự kiện [, & nbsp; selector]))obj )

                                                Bộ chọn [Tùy chọn] Một bộ chọn để chỉ định các yếu tố mà trình xử lý được phát ra.

                                                • Ví dụ

                                                  The object containing name-value pairs to update data fields.

                                                Thông tin chi tiết

                                                Chỉ có thể đặt dữ liệu JSON-serialisable trong

                                                cytoscape({
                                                
                                                  container: document.getElementById('cy'),
                                                
                                                  elements: [ // flat array of nodes and edges
                                                    { // node n1
                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                      // NB the group field can be automatically inferred for you but specifying it
                                                      // gives you nice debug messages if you mis-init elements
                                                
                                                
                                                      data: { // element data (put json serialisable dev data here)
                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                      },
                                                
                                                      // scratchpad data (usually temp or nonserialisable data)
                                                      scratch: {
                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                      },
                                                
                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                        x: 100,
                                                        y: 100
                                                      },
                                                
                                                      selected: false, // whether the element is selected (default false)
                                                
                                                      selectable: true, // whether the selection state is mutable (default true)
                                                
                                                      locked: false, // when locked a node's position is immutable (default false)
                                                
                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                
                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                
                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                
                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                      // USE THE STYLESHEET INSTEAD
                                                      style: { // style property overrides 
                                                        'background-color': 'red'
                                                      }
                                                    },
                                                
                                                    { // node n2
                                                      data: { id: 'n2' },
                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                    },
                                                
                                                    { // node n3
                                                      data: { id: 'n3', parent: 'nparent' },
                                                      position: { x: 123, y: 234 }
                                                    },
                                                
                                                    { // node nparent
                                                      data: { id: 'nparent' }
                                                    },
                                                
                                                    { // edge e1
                                                      data: {
                                                        id: 'e1',
                                                        // inferred as an edge because `source` and `target` are specified:
                                                        source: 'n1', // the source node id (edge comes from this node)
                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                      },
                                                
                                                      pannable: true // whether dragging on the edge causes panning
                                                    }
                                                  ],
                                                
                                                  layout: {
                                                    name: 'preset'
                                                  },
                                                
                                                  // so we can see the ids
                                                  style: [
                                                    {
                                                      selector: 'node',
                                                      style: {
                                                        'label': 'data(id)'
                                                      }
                                                    }
                                                  ]
                                                
                                                });
                                                
                                                79. Đối với dữ liệu tạm thời hoặc dữ liệu không thể tự chủ, hãy sử dụng
                                                var a = cy.$('#a'); // assume a compound node
                                                
                                                // the neighbourhood of `a` contains directly connected elements
                                                var directlyConnected = a.neighborhood();
                                                
                                                // you may want everything connected to its descendants instead
                                                // because the descendants "belong" to `a`
                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                
                                                07.

                                                Các trường sau đây thường bất biến:

                                                • <script src="cytoscape.min.js">script>
                                                  
                                                  31: Trường
                                                  <script src="cytoscape.min.js">script>
                                                  
                                                  31 được sử dụng để xác định duy nhất một phần tử trong biểu đồ.
                                                • cytoscape({
                                                  
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: [ // flat array of nodes and edges
                                                      { // node n1
                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                        // NB the group field can be automatically inferred for you but specifying it
                                                        // gives you nice debug messages if you mis-init elements
                                                  
                                                  
                                                        data: { // element data (put json serialisable dev data here)
                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        // scratchpad data (usually temp or nonserialisable data)
                                                        scratch: {
                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                        },
                                                  
                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                          x: 100,
                                                          y: 100
                                                        },
                                                  
                                                        selected: false, // whether the element is selected (default false)
                                                  
                                                        selectable: true, // whether the selection state is mutable (default true)
                                                  
                                                        locked: false, // when locked a node's position is immutable (default false)
                                                  
                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                  
                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                  
                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                  
                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                        // USE THE STYLESHEET INSTEAD
                                                        style: { // style property overrides 
                                                          'background-color': 'red'
                                                        }
                                                      },
                                                  
                                                      { // node n2
                                                        data: { id: 'n2' },
                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                      },
                                                  
                                                      { // node n3
                                                        data: { id: 'n3', parent: 'nparent' },
                                                        position: { x: 123, y: 234 }
                                                      },
                                                  
                                                      { // node nparent
                                                        data: { id: 'nparent' }
                                                      },
                                                  
                                                      { // edge e1
                                                        data: {
                                                          id: 'e1',
                                                          // inferred as an edge because `source` and `target` are specified:
                                                          source: 'n1', // the source node id (edge comes from this node)
                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        pannable: true // whether dragging on the edge causes panning
                                                      }
                                                    ],
                                                  
                                                    layout: {
                                                      name: 'preset'
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  
                                                  });
                                                  
                                                  76 &
                                                  cytoscape({
                                                  
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: [ // flat array of nodes and edges
                                                      { // node n1
                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                        // NB the group field can be automatically inferred for you but specifying it
                                                        // gives you nice debug messages if you mis-init elements
                                                  
                                                  
                                                        data: { // element data (put json serialisable dev data here)
                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        // scratchpad data (usually temp or nonserialisable data)
                                                        scratch: {
                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                        },
                                                  
                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                          x: 100,
                                                          y: 100
                                                        },
                                                  
                                                        selected: false, // whether the element is selected (default false)
                                                  
                                                        selectable: true, // whether the selection state is mutable (default true)
                                                  
                                                        locked: false, // when locked a node's position is immutable (default false)
                                                  
                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                  
                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                  
                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                  
                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                        // USE THE STYLESHEET INSTEAD
                                                        style: { // style property overrides 
                                                          'background-color': 'red'
                                                        }
                                                      },
                                                  
                                                      { // node n2
                                                        data: { id: 'n2' },
                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                      },
                                                  
                                                      { // node n3
                                                        data: { id: 'n3', parent: 'nparent' },
                                                        position: { x: 123, y: 234 }
                                                      },
                                                  
                                                      { // node nparent
                                                        data: { id: 'nparent' }
                                                      },
                                                  
                                                      { // edge e1
                                                        data: {
                                                          id: 'e1',
                                                          // inferred as an edge because `source` and `target` are specified:
                                                          source: 'n1', // the source node id (edge comes from this node)
                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        pannable: true // whether dragging on the edge causes panning
                                                      }
                                                    ],
                                                  
                                                    layout: {
                                                      name: 'preset'
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  
                                                  });
                                                  
                                                  77: Các lĩnh vực này xác định mối quan hệ cạnh với các nút và mối quan hệ này không thể thay đổi sau khi tạo.
                                                • cytoscape({
                                                  
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: [ // flat array of nodes and edges
                                                      { // node n1
                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                        // NB the group field can be automatically inferred for you but specifying it
                                                        // gives you nice debug messages if you mis-init elements
                                                  
                                                  
                                                        data: { // element data (put json serialisable dev data here)
                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        // scratchpad data (usually temp or nonserialisable data)
                                                        scratch: {
                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                        },
                                                  
                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                          x: 100,
                                                          y: 100
                                                        },
                                                  
                                                        selected: false, // whether the element is selected (default false)
                                                  
                                                        selectable: true, // whether the selection state is mutable (default true)
                                                  
                                                        locked: false, // when locked a node's position is immutable (default false)
                                                  
                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                  
                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                  
                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                  
                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                        // USE THE STYLESHEET INSTEAD
                                                        style: { // style property overrides 
                                                          'background-color': 'red'
                                                        }
                                                      },
                                                  
                                                      { // node n2
                                                        data: { id: 'n2' },
                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                      },
                                                  
                                                      { // node n3
                                                        data: { id: 'n3', parent: 'nparent' },
                                                        position: { x: 123, y: 234 }
                                                      },
                                                  
                                                      { // node nparent
                                                        data: { id: 'nparent' }
                                                      },
                                                  
                                                      { // edge e1
                                                        data: {
                                                          id: 'e1',
                                                          // inferred as an edge because `source` and `target` are specified:
                                                          source: 'n1', // the source node id (edge comes from this node)
                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        pannable: true // whether dragging on the edge causes panning
                                                      }
                                                    ],
                                                  
                                                    layout: {
                                                      name: 'preset'
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  
                                                  });
                                                  
                                                  74: Trường
                                                  cytoscape({
                                                  
                                                    container: document.getElementById('cy'),
                                                  
                                                    elements: [ // flat array of nodes and edges
                                                      { // node n1
                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                        // NB the group field can be automatically inferred for you but specifying it
                                                        // gives you nice debug messages if you mis-init elements
                                                  
                                                  
                                                        data: { // element data (put json serialisable dev data here)
                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        // scratchpad data (usually temp or nonserialisable data)
                                                        scratch: {
                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                        },
                                                  
                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                          x: 100,
                                                          y: 100
                                                        },
                                                  
                                                        selected: false, // whether the element is selected (default false)
                                                  
                                                        selectable: true, // whether the selection state is mutable (default true)
                                                  
                                                        locked: false, // when locked a node's position is immutable (default false)
                                                  
                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                  
                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                  
                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                  
                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                        // USE THE STYLESHEET INSTEAD
                                                        style: { // style property overrides 
                                                          'background-color': 'red'
                                                        }
                                                      },
                                                  
                                                      { // node n2
                                                        data: { id: 'n2' },
                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                      },
                                                  
                                                      { // node n3
                                                        data: { id: 'n3', parent: 'nparent' },
                                                        position: { x: 123, y: 234 }
                                                      },
                                                  
                                                      { // node nparent
                                                        data: { id: 'nparent' }
                                                      },
                                                  
                                                      { // edge e1
                                                        data: {
                                                          id: 'e1',
                                                          // inferred as an edge because `source` and `target` are specified:
                                                          source: 'n1', // the source node id (edge comes from this node)
                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                        },
                                                  
                                                        pannable: true // whether dragging on the edge causes panning
                                                      }
                                                    ],
                                                  
                                                    layout: {
                                                      name: 'preset'
                                                    },
                                                  
                                                    // so we can see the ids
                                                    style: [
                                                      {
                                                        selector: 'node',
                                                        style: {
                                                          'label': 'data(id)'
                                                        }
                                                      }
                                                    ]
                                                  
                                                  });
                                                  
                                                  74 xác định nút cha (hợp chất).

                                                Để sửa đổi các trường đó, thay đổi cấu trúc liên kết đồ thị, bạn phải sử dụng

                                                <script src="cytoscape.min.js">script>
                                                
                                                37.

                                                Ví dụ

                                                import cytoscape from 'cytoscape';
                                                
                                                7

                                                eles.removeData()               

                                                Bí danh:

                                                <script src="cytoscape.min.js">script>
                                                
                                                38,
                                                <script src="cytoscape.min.js">script>
                                                
                                                38,

                                                Loại bỏ dữ liệu do nhà phát triển xác định liên quan đến các yếu tố.

                                                eles.removeData()

                                                Loại bỏ tất cả các trường dữ liệu có thể thay đổi cho các yếu tố.

                                                  eles.removeData (, & nbsp; tên)names )

                                                  Xóa các trường dữ liệu đột biến được chỉ định cho các phần tử.

                                                  • Danh sách các trường phân tách không gian tên để xóa.

                                                    A space-separated list of fields to delete.

                                                  Thông tin chi tiết

                                                  Sử dụng

                                                  <script src="cytoscape.min.js">script>
                                                  
                                                  39 đặt các trường được chỉ định thành
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  10. Điều này cho phép bạn sử dụng giá trị
                                                  var a = cy.$('#a'); // assume a compound node
                                                  
                                                  // the neighbourhood of `a` contains directly connected elements
                                                  var directlyConnected = a.neighborhood();
                                                  
                                                  // you may want everything connected to its descendants instead
                                                  // because the descendants "belong" to `a`
                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                  
                                                  11 có ý nghĩa trong dữ liệu phần tử của bạn.

                                                  Các trường dữ liệu sau đây thường bất biến và do đó chúng không thể bị xóa:

                                                  • <script src="cytoscape.min.js">script>
                                                    
                                                    31: Trường
                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    31 được sử dụng để xác định duy nhất một phần tử trong biểu đồ.
                                                  • cytoscape({
                                                    
                                                      container: document.getElementById('cy'),
                                                    
                                                      elements: [ // flat array of nodes and edges
                                                        { // node n1
                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                          // NB the group field can be automatically inferred for you but specifying it
                                                          // gives you nice debug messages if you mis-init elements
                                                    
                                                    
                                                          data: { // element data (put json serialisable dev data here)
                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          // scratchpad data (usually temp or nonserialisable data)
                                                          scratch: {
                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                          },
                                                    
                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                            x: 100,
                                                            y: 100
                                                          },
                                                    
                                                          selected: false, // whether the element is selected (default false)
                                                    
                                                          selectable: true, // whether the selection state is mutable (default true)
                                                    
                                                          locked: false, // when locked a node's position is immutable (default false)
                                                    
                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                    
                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                    
                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                    
                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                          // USE THE STYLESHEET INSTEAD
                                                          style: { // style property overrides 
                                                            'background-color': 'red'
                                                          }
                                                        },
                                                    
                                                        { // node n2
                                                          data: { id: 'n2' },
                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                        },
                                                    
                                                        { // node n3
                                                          data: { id: 'n3', parent: 'nparent' },
                                                          position: { x: 123, y: 234 }
                                                        },
                                                    
                                                        { // node nparent
                                                          data: { id: 'nparent' }
                                                        },
                                                    
                                                        { // edge e1
                                                          data: {
                                                            id: 'e1',
                                                            // inferred as an edge because `source` and `target` are specified:
                                                            source: 'n1', // the source node id (edge comes from this node)
                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          pannable: true // whether dragging on the edge causes panning
                                                        }
                                                      ],
                                                    
                                                      layout: {
                                                        name: 'preset'
                                                      },
                                                    
                                                      // so we can see the ids
                                                      style: [
                                                        {
                                                          selector: 'node',
                                                          style: {
                                                            'label': 'data(id)'
                                                          }
                                                        }
                                                      ]
                                                    
                                                    });
                                                    
                                                    76 &
                                                    cytoscape({
                                                    
                                                      container: document.getElementById('cy'),
                                                    
                                                      elements: [ // flat array of nodes and edges
                                                        { // node n1
                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                          // NB the group field can be automatically inferred for you but specifying it
                                                          // gives you nice debug messages if you mis-init elements
                                                    
                                                    
                                                          data: { // element data (put json serialisable dev data here)
                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          // scratchpad data (usually temp or nonserialisable data)
                                                          scratch: {
                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                          },
                                                    
                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                            x: 100,
                                                            y: 100
                                                          },
                                                    
                                                          selected: false, // whether the element is selected (default false)
                                                    
                                                          selectable: true, // whether the selection state is mutable (default true)
                                                    
                                                          locked: false, // when locked a node's position is immutable (default false)
                                                    
                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                    
                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                    
                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                    
                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                          // USE THE STYLESHEET INSTEAD
                                                          style: { // style property overrides 
                                                            'background-color': 'red'
                                                          }
                                                        },
                                                    
                                                        { // node n2
                                                          data: { id: 'n2' },
                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                        },
                                                    
                                                        { // node n3
                                                          data: { id: 'n3', parent: 'nparent' },
                                                          position: { x: 123, y: 234 }
                                                        },
                                                    
                                                        { // node nparent
                                                          data: { id: 'nparent' }
                                                        },
                                                    
                                                        { // edge e1
                                                          data: {
                                                            id: 'e1',
                                                            // inferred as an edge because `source` and `target` are specified:
                                                            source: 'n1', // the source node id (edge comes from this node)
                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          pannable: true // whether dragging on the edge causes panning
                                                        }
                                                      ],
                                                    
                                                      layout: {
                                                        name: 'preset'
                                                      },
                                                    
                                                      // so we can see the ids
                                                      style: [
                                                        {
                                                          selector: 'node',
                                                          style: {
                                                            'label': 'data(id)'
                                                          }
                                                        }
                                                      ]
                                                    
                                                    });
                                                    
                                                    77: Các lĩnh vực này xác định mối quan hệ cạnh với các nút và mối quan hệ này không thể thay đổi sau khi tạo.
                                                  • cytoscape({
                                                    
                                                      container: document.getElementById('cy'),
                                                    
                                                      elements: [ // flat array of nodes and edges
                                                        { // node n1
                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                          // NB the group field can be automatically inferred for you but specifying it
                                                          // gives you nice debug messages if you mis-init elements
                                                    
                                                    
                                                          data: { // element data (put json serialisable dev data here)
                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          // scratchpad data (usually temp or nonserialisable data)
                                                          scratch: {
                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                          },
                                                    
                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                            x: 100,
                                                            y: 100
                                                          },
                                                    
                                                          selected: false, // whether the element is selected (default false)
                                                    
                                                          selectable: true, // whether the selection state is mutable (default true)
                                                    
                                                          locked: false, // when locked a node's position is immutable (default false)
                                                    
                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                    
                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                    
                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                    
                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                          // USE THE STYLESHEET INSTEAD
                                                          style: { // style property overrides 
                                                            'background-color': 'red'
                                                          }
                                                        },
                                                    
                                                        { // node n2
                                                          data: { id: 'n2' },
                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                        },
                                                    
                                                        { // node n3
                                                          data: { id: 'n3', parent: 'nparent' },
                                                          position: { x: 123, y: 234 }
                                                        },
                                                    
                                                        { // node nparent
                                                          data: { id: 'nparent' }
                                                        },
                                                    
                                                        { // edge e1
                                                          data: {
                                                            id: 'e1',
                                                            // inferred as an edge because `source` and `target` are specified:
                                                            source: 'n1', // the source node id (edge comes from this node)
                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          pannable: true // whether dragging on the edge causes panning
                                                        }
                                                      ],
                                                    
                                                      layout: {
                                                        name: 'preset'
                                                      },
                                                    
                                                      // so we can see the ids
                                                      style: [
                                                        {
                                                          selector: 'node',
                                                          style: {
                                                            'label': 'data(id)'
                                                          }
                                                        }
                                                      ]
                                                    
                                                    });
                                                    
                                                    74: Trường
                                                    cytoscape({
                                                    
                                                      container: document.getElementById('cy'),
                                                    
                                                      elements: [ // flat array of nodes and edges
                                                        { // node n1
                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                          // NB the group field can be automatically inferred for you but specifying it
                                                          // gives you nice debug messages if you mis-init elements
                                                    
                                                    
                                                          data: { // element data (put json serialisable dev data here)
                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          // scratchpad data (usually temp or nonserialisable data)
                                                          scratch: {
                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                          },
                                                    
                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                            x: 100,
                                                            y: 100
                                                          },
                                                    
                                                          selected: false, // whether the element is selected (default false)
                                                    
                                                          selectable: true, // whether the selection state is mutable (default true)
                                                    
                                                          locked: false, // when locked a node's position is immutable (default false)
                                                    
                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                    
                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                    
                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                    
                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                          // USE THE STYLESHEET INSTEAD
                                                          style: { // style property overrides 
                                                            'background-color': 'red'
                                                          }
                                                        },
                                                    
                                                        { // node n2
                                                          data: { id: 'n2' },
                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                        },
                                                    
                                                        { // node n3
                                                          data: { id: 'n3', parent: 'nparent' },
                                                          position: { x: 123, y: 234 }
                                                        },
                                                    
                                                        { // node nparent
                                                          data: { id: 'nparent' }
                                                        },
                                                    
                                                        { // edge e1
                                                          data: {
                                                            id: 'e1',
                                                            // inferred as an edge because `source` and `target` are specified:
                                                            source: 'n1', // the source node id (edge comes from this node)
                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          pannable: true // whether dragging on the edge causes panning
                                                        }
                                                      ],
                                                    
                                                      layout: {
                                                        name: 'preset'
                                                      },
                                                    
                                                      // so we can see the ids
                                                      style: [
                                                        {
                                                          selector: 'node',
                                                          style: {
                                                            'label': 'data(id)'
                                                          }
                                                        }
                                                      ]
                                                    
                                                    });
                                                    
                                                    74 xác định nút cha (hợp chất).

                                                  Để sửa đổi các trường đó, thay đổi cấu trúc liên kết đồ thị, bạn phải sử dụng

                                                  <script src="cytoscape.min.js">script>
                                                  
                                                  37.

                                                  ele.scratch()               

                                                  Ví dụ

                                                  Bí danh:

                                                  <script src="cytoscape.min.js">script>
                                                  
                                                  38,

                                                  ele.scratch()

                                                  Loại bỏ dữ liệu do nhà phát triển xác định liên quan đến các yếu tố.

                                                    Loại bỏ tất cả các trường dữ liệu có thể thay đổi cho các yếu tố.namespace )

                                                    eles.removeData (, & nbsp; tên)

                                                    • Xóa các trường dữ liệu đột biến được chỉ định cho các phần tử.

                                                      A namespace string.

                                                    Danh sách các trường phân tách không gian tên để xóa.namespacevalue )

                                                    Sử dụng

                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    39 đặt các trường được chỉ định thành
                                                    var a = cy.$('#a'); // assume a compound node
                                                    
                                                    // the neighbourhood of `a` contains directly connected elements
                                                    var directlyConnected = a.neighborhood();
                                                    
                                                    // you may want everything connected to its descendants instead
                                                    // because the descendants "belong" to `a`
                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                    
                                                    10. Điều này cho phép bạn sử dụng giá trị
                                                    var a = cy.$('#a'); // assume a compound node
                                                    
                                                    // the neighbourhood of `a` contains directly connected elements
                                                    var directlyConnected = a.neighborhood();
                                                    
                                                    // you may want everything connected to its descendants instead
                                                    // because the descendants "belong" to `a`
                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                    
                                                    11 có ý nghĩa trong dữ liệu phần tử của bạn.

                                                    • Xóa các trường dữ liệu đột biến được chỉ định cho các phần tử.

                                                      A namespace string.

                                                    • Danh sách các trường phân tách không gian tên để xóa.

                                                      The value to set at the specified namespace.

                                                    Thông tin chi tiết

                                                    Sử dụng

                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    39 đặt các trường được chỉ định thành
                                                    var a = cy.$('#a'); // assume a compound node
                                                    
                                                    // the neighbourhood of `a` contains directly connected elements
                                                    var directlyConnected = a.neighborhood();
                                                    
                                                    // you may want everything connected to its descendants instead
                                                    // because the descendants "belong" to `a`
                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                    
                                                    10. Điều này cho phép bạn sử dụng giá trị
                                                    var a = cy.$('#a'); // assume a compound node
                                                    
                                                    // the neighbourhood of `a` contains directly connected elements
                                                    var directlyConnected = a.neighborhood();
                                                    
                                                    // you may want everything connected to its descendants instead
                                                    // because the descendants "belong" to `a`
                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                    
                                                    11 có ý nghĩa trong dữ liệu phần tử của bạn.

                                                    Các trường dữ liệu sau đây thường bất biến và do đó chúng không thể bị xóa:

                                                    Để sửa đổi cấu trúc liên kết của biểu đồ mà không cần thêm hoặc loại bỏ các phần tử, bạn phải sử dụng

                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    37. Mặc dù vậy, chỉ có
                                                    cytoscape({
                                                    
                                                      container: document.getElementById('cy'),
                                                    
                                                      elements: [ // flat array of nodes and edges
                                                        { // node n1
                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                          // NB the group field can be automatically inferred for you but specifying it
                                                          // gives you nice debug messages if you mis-init elements
                                                    
                                                    
                                                          data: { // element data (put json serialisable dev data here)
                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          // scratchpad data (usually temp or nonserialisable data)
                                                          scratch: {
                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                          },
                                                    
                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                            x: 100,
                                                            y: 100
                                                          },
                                                    
                                                          selected: false, // whether the element is selected (default false)
                                                    
                                                          selectable: true, // whether the selection state is mutable (default true)
                                                    
                                                          locked: false, // when locked a node's position is immutable (default false)
                                                    
                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                    
                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                    
                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                    
                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                          // USE THE STYLESHEET INSTEAD
                                                          style: { // style property overrides 
                                                            'background-color': 'red'
                                                          }
                                                        },
                                                    
                                                        { // node n2
                                                          data: { id: 'n2' },
                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                        },
                                                    
                                                        { // node n3
                                                          data: { id: 'n3', parent: 'nparent' },
                                                          position: { x: 123, y: 234 }
                                                        },
                                                    
                                                        { // node nparent
                                                          data: { id: 'nparent' }
                                                        },
                                                    
                                                        { // edge e1
                                                          data: {
                                                            id: 'e1',
                                                            // inferred as an edge because `source` and `target` are specified:
                                                            source: 'n1', // the source node id (edge comes from this node)
                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                          },
                                                    
                                                          pannable: true // whether dragging on the edge causes panning
                                                        }
                                                      ],
                                                    
                                                      layout: {
                                                        name: 'preset'
                                                      },
                                                    
                                                      // so we can see the ids
                                                      style: [
                                                        {
                                                          selector: 'node',
                                                          style: {
                                                            'label': 'data(id)'
                                                          }
                                                        }
                                                      ]
                                                    
                                                    });
                                                    
                                                    74 có thể bị xóa bởi
                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    37. Một cạnh luôn yêu cầu một nguồn và mục tiêu hợp lệ.

                                                    Ví dụ

                                                    import cytoscape from 'cytoscape';
                                                    
                                                    8

                                                    ele.removeScratch()       

                                                    Ví dụ

                                                    Bí danh:

                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    38,

                                                    Loại bỏ dữ liệu do nhà phát triển xác định liên quan đến các yếu tố.namespace )

                                                    Loại bỏ tất cả các trường dữ liệu có thể thay đổi cho các yếu tố.

                                                    • Xóa các trường dữ liệu đột biến được chỉ định cho các phần tử.

                                                      A namespace string.

                                                    ele.id()   

                                                    Danh sách các trường phân tách không gian tên để xóa.

                                                    ele.json()           

                                                    Sử dụng

                                                    <script src="cytoscape.min.js">script>
                                                    
                                                    39 đặt các trường được chỉ định thành
                                                    var a = cy.$('#a'); // assume a compound node
                                                    
                                                    // the neighbourhood of `a` contains directly connected elements
                                                    var directlyConnected = a.neighborhood();
                                                    
                                                    // you may want everything connected to its descendants instead
                                                    // because the descendants "belong" to `a`
                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                    
                                                    10. Điều này cho phép bạn sử dụng giá trị
                                                    var a = cy.$('#a'); // assume a compound node
                                                    
                                                    // the neighbourhood of `a` contains directly connected elements
                                                    var directlyConnected = a.neighborhood();
                                                    
                                                    // you may want everything connected to its descendants instead
                                                    // because the descendants "belong" to `a`
                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                    
                                                    11 có ý nghĩa trong dữ liệu phần tử của bạn.

                                                    ele.json()

                                                    Các trường dữ liệu sau đây thường bất biến và do đó chúng không thể bị xóa:

                                                      Để sửa đổi cấu trúc liên kết của biểu đồ mà không cần thêm hoặc loại bỏ các phần tử, bạn phải sử dụng

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      37. Mặc dù vậy, chỉ có
                                                      cytoscape({
                                                      
                                                        container: document.getElementById('cy'),
                                                      
                                                        elements: [ // flat array of nodes and edges
                                                          { // node n1
                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                            // NB the group field can be automatically inferred for you but specifying it
                                                            // gives you nice debug messages if you mis-init elements
                                                      
                                                      
                                                            data: { // element data (put json serialisable dev data here)
                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                            },
                                                      
                                                            // scratchpad data (usually temp or nonserialisable data)
                                                            scratch: {
                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                            },
                                                      
                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                              x: 100,
                                                              y: 100
                                                            },
                                                      
                                                            selected: false, // whether the element is selected (default false)
                                                      
                                                            selectable: true, // whether the selection state is mutable (default true)
                                                      
                                                            locked: false, // when locked a node's position is immutable (default false)
                                                      
                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                      
                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                      
                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                      
                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                            // USE THE STYLESHEET INSTEAD
                                                            style: { // style property overrides 
                                                              'background-color': 'red'
                                                            }
                                                          },
                                                      
                                                          { // node n2
                                                            data: { id: 'n2' },
                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                          },
                                                      
                                                          { // node n3
                                                            data: { id: 'n3', parent: 'nparent' },
                                                            position: { x: 123, y: 234 }
                                                          },
                                                      
                                                          { // node nparent
                                                            data: { id: 'nparent' }
                                                          },
                                                      
                                                          { // edge e1
                                                            data: {
                                                              id: 'e1',
                                                              // inferred as an edge because `source` and `target` are specified:
                                                              source: 'n1', // the source node id (edge comes from this node)
                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                            },
                                                      
                                                            pannable: true // whether dragging on the edge causes panning
                                                          }
                                                        ],
                                                      
                                                        layout: {
                                                          name: 'preset'
                                                        },
                                                      
                                                        // so we can see the ids
                                                        style: [
                                                          {
                                                            selector: 'node',
                                                            style: {
                                                              'label': 'data(id)'
                                                            }
                                                          }
                                                        ]
                                                      
                                                      });
                                                      
                                                      74 có thể bị xóa bởi
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      37. Một cạnh luôn yêu cầu một nguồn và mục tiêu hợp lệ.eleJson )

                                                      Chức năng mở rộng: Hàm này được dự định để sử dụng trong các tiện ích mở rộng.

                                                      • Đặt hoặc nhận dữ liệu Scratchpad, trong đó dữ liệu tạm thời hoặc không phải là JSON có thể được lưu trữ. Dữ liệu Scratchpad cấp ứng dụng nên sử dụng các không gian tên được đặt trước với dấu gạch dưới, như
                                                        var a = cy.$('#a'); // assume a compound node
                                                        
                                                        // the neighbourhood of `a` contains directly connected elements
                                                        var directlyConnected = a.neighborhood();
                                                        
                                                        // you may want everything connected to its descendants instead
                                                        // because the descendants "belong" to `a`
                                                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                        
                                                        06.

                                                        For each field in the object, the element’s state is mutated as specified.

                                                      Thông tin chi tiết

                                                      Nhận toàn bộ đối tượng Scratchpad cho phần tử.

                                                      Ele.Scratch (, & NBSP; không gian tên)

                                                      Nhận Scratchpad tại một không gian tên cụ thể.

                                                      Ví dụ

                                                      Bí danh:

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      38,

                                                      import cytoscape from 'cytoscape';
                                                      
                                                      9

                                                      Loại bỏ dữ liệu do nhà phát triển xác định liên quan đến các yếu tố.

                                                      .side-line {
                                                          display: inline-block;
                                                          border-top: 1px solid black;
                                                          width: 20%;
                                                      }
                                                      
                                                      .triangle {
                                                          display: inline-block;
                                                          height: 7px;
                                                          width: 7px;
                                                          transform: rotate(45deg);
                                                          transform-origin: center center;
                                                          border-top: 1px solid black;
                                                          border-left: 1px solid black;
                                                          margin: 0 -3px -3px;
                                                      }
                                                      
                                                      00

                                                      eles.jsons()   

                                                      Nhận một mảng của biểu diễn đối tượng JavaScript đơn giản của tất cả các yếu tố trong bộ sưu tập.

                                                      Thông tin chi tiết

                                                      Hàm này trả về biểu diễn JSON đơn giản của tất cả các yếu tố trong bộ sưu tập, cùng một định dạng được sử dụng khi khởi tạo, trong

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      60, v.v.

                                                      Ví dụ

                                                      .side-line {
                                                          display: inline-block;
                                                          border-top: 1px solid black;
                                                          width: 20%;
                                                      }
                                                      
                                                      .triangle {
                                                          display: inline-block;
                                                          height: 7px;
                                                          width: 7px;
                                                          transform: rotate(45deg);
                                                          transform-origin: center center;
                                                          border-top: 1px solid black;
                                                          border-left: 1px solid black;
                                                          margin: 0 -3px -3px;
                                                      }
                                                      
                                                      01

                                                      ele.group()   

                                                      Nhận chuỗi nhóm xác định loại phần tử.

                                                      Thông tin chi tiết

                                                      Hàm này trả về biểu diễn JSON đơn giản của tất cả các yếu tố trong bộ sưu tập, cùng một định dạng được sử dụng khi khởi tạo, trong

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      60, v.v.

                                                      ele.isNode()   

                                                      Ví dụ

                                                      ele.isEdge()   

                                                      Nhận chuỗi nhóm xác định loại phần tử.

                                                      edge.isLoop()   

                                                      Các chuỗi nhóm là

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      68 cho các nút và
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      69 cho các cạnh. Nói chung, bạn nên sử dụng
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      70 và
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      71 thay vì
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      72.

                                                      edge.isSimple()   

                                                      Nhận liệu phần tử là một nút.

                                                      Nhận liệu phần tử là một cạnh. et al                      

                                                      Nhận liệu cạnh là một vòng lặp (nghĩa là cùng một nguồn và mục tiêu).includeLoops )

                                                      Nhận liệu cạnh có đơn giản hay không (nghĩa là nguồn và mục tiêu khác nhau).

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      node.degree (, & nbsp; bao gồm cảEloops)includeLoops )

                                                      Nhận mức độ của một nút.

                                                      • node.degree () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                        A boolean, indicating whether loops are to be included in degree calculations.

                                                      Thông tin chi tiết

                                                      node.degree (, & nbsp; bao gồm cảEloops)

                                                      Nhận mức độ của một nút.

                                                      Bao gồm Boolean Boolean, cho biết liệu các vòng có được bao gồm trong các tính toán bằng cấp hay không.

                                                      node.indegree (, & nbsp; bao gồm cảEloops)

                                                      Nhận sự vô tư của một nút.

                                                      node.position()                           

                                                      node.outdegree (, & nbsp; bao gồm cảEloops)

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      77,
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      78,

                                                      node.position()

                                                      Nhận lỗi thời của một nút.

                                                      các nút.totaldegree (, & nbsp; bao gồm cảEloops)dimension )

                                                      Nhận tổng số mức độ của một bộ sưu tập các nút.

                                                      • các nút.Mindegree (, & nbsp; bao gồm cảEloops)

                                                        The position dimension to get.

                                                      Nhận mức độ tối thiểu của các nút trong bộ sưu tập.dimensionvalue )

                                                      các nút.maxdegree (, & nbsp; bao gồm cảEloops)

                                                      • Nhận mức độ tối đa của các nút trong bộ sưu tập.

                                                        The position dimension to set.

                                                      • các nút

                                                        The value to set to the dimension.

                                                      Nhận sự vô tư tối thiểu của các nút trong bộ sưu tập.pos )

                                                      các nút.MaxIndegree (, & nbsp; bao gồm cảEloops)

                                                      • Nhận sự vô tư tối đa của các nút trong bộ sưu tập.

                                                        An object specifying name-value pairs representing dimensions to set.

                                                      Thông tin chi tiết

                                                      các nút.minoutdegree (, & nbsp; bao gồm cả

                                                      Ví dụ

                                                      .side-line {
                                                          display: inline-block;
                                                          border-top: 1px solid black;
                                                          width: 20%;
                                                      }
                                                      
                                                      .triangle {
                                                          display: inline-block;
                                                          height: 7px;
                                                          width: 7px;
                                                          transform: rotate(45deg);
                                                          transform-origin: center center;
                                                          border-top: 1px solid black;
                                                          border-left: 1px solid black;
                                                          margin: 0 -3px -3px;
                                                      }
                                                      
                                                      02

                                                      nodes.shift()           

                                                      Nhận hết mức tối thiểu của các nút trong bộ sưu tập.

                                                      Nútdimensionvalue )

                                                      Nhận hết mức tối đa của các nút trong bộ sưu tập.

                                                      • Độ: Đối với một nút, mức độ là số lượng kết nối cạnh mà nó có. Mỗi lần một nút được tham chiếu là
                                                        cytoscape({
                                                        
                                                          container: document.getElementById('cy'),
                                                        
                                                          elements: [ // flat array of nodes and edges
                                                            { // node n1
                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                              // NB the group field can be automatically inferred for you but specifying it
                                                              // gives you nice debug messages if you mis-init elements
                                                        
                                                        
                                                              data: { // element data (put json serialisable dev data here)
                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                              },
                                                        
                                                              // scratchpad data (usually temp or nonserialisable data)
                                                              scratch: {
                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                              },
                                                        
                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                x: 100,
                                                                y: 100
                                                              },
                                                        
                                                              selected: false, // whether the element is selected (default false)
                                                        
                                                              selectable: true, // whether the selection state is mutable (default true)
                                                        
                                                              locked: false, // when locked a node's position is immutable (default false)
                                                        
                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                        
                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                        
                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                        
                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                              // USE THE STYLESHEET INSTEAD
                                                              style: { // style property overrides 
                                                                'background-color': 'red'
                                                              }
                                                            },
                                                        
                                                            { // node n2
                                                              data: { id: 'n2' },
                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                            },
                                                        
                                                            { // node n3
                                                              data: { id: 'n3', parent: 'nparent' },
                                                              position: { x: 123, y: 234 }
                                                            },
                                                        
                                                            { // node nparent
                                                              data: { id: 'nparent' }
                                                            },
                                                        
                                                            { // edge e1
                                                              data: {
                                                                id: 'e1',
                                                                // inferred as an edge because `source` and `target` are specified:
                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                              },
                                                        
                                                              pannable: true // whether dragging on the edge causes panning
                                                            }
                                                          ],
                                                        
                                                          layout: {
                                                            name: 'preset'
                                                          },
                                                        
                                                          // so we can see the ids
                                                          style: [
                                                            {
                                                              selector: 'node',
                                                              style: {
                                                                'label': 'data(id)'
                                                              }
                                                            }
                                                          ]
                                                        
                                                        });
                                                        
                                                        76 hoặc
                                                        cytoscape({
                                                        
                                                          container: document.getElementById('cy'),
                                                        
                                                          elements: [ // flat array of nodes and edges
                                                            { // node n1
                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                              // NB the group field can be automatically inferred for you but specifying it
                                                              // gives you nice debug messages if you mis-init elements
                                                        
                                                        
                                                              data: { // element data (put json serialisable dev data here)
                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                              },
                                                        
                                                              // scratchpad data (usually temp or nonserialisable data)
                                                              scratch: {
                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                              },
                                                        
                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                x: 100,
                                                                y: 100
                                                              },
                                                        
                                                              selected: false, // whether the element is selected (default false)
                                                        
                                                              selectable: true, // whether the selection state is mutable (default true)
                                                        
                                                              locked: false, // when locked a node's position is immutable (default false)
                                                        
                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                        
                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                        
                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                        
                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                              // USE THE STYLESHEET INSTEAD
                                                              style: { // style property overrides 
                                                                'background-color': 'red'
                                                              }
                                                            },
                                                        
                                                            { // node n2
                                                              data: { id: 'n2' },
                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                            },
                                                        
                                                            { // node n3
                                                              data: { id: 'n3', parent: 'nparent' },
                                                              position: { x: 123, y: 234 }
                                                            },
                                                        
                                                            { // node nparent
                                                              data: { id: 'nparent' }
                                                            },
                                                        
                                                            { // edge e1
                                                              data: {
                                                                id: 'e1',
                                                                // inferred as an edge because `source` and `target` are specified:
                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                              },
                                                        
                                                              pannable: true // whether dragging on the edge causes panning
                                                            }
                                                          ],
                                                        
                                                          layout: {
                                                            name: 'preset'
                                                          },
                                                        
                                                          // so we can see the ids
                                                          style: [
                                                            {
                                                              selector: 'node',
                                                              style: {
                                                                'label': 'data(id)'
                                                              }
                                                            }
                                                          ]
                                                        
                                                        });
                                                        
                                                        77 của một cạnh trong biểu đồ, được tính là một kết nối cạnh.

                                                        The position dimension to shift.

                                                      • Indegree: Đối với một nút, Indegree là số lượng các kết nối cạnh đến mà nó có. Mỗi lần một nút được gọi là
                                                        cytoscape({
                                                        
                                                          container: document.getElementById('cy'),
                                                        
                                                          elements: [ // flat array of nodes and edges
                                                            { // node n1
                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                              // NB the group field can be automatically inferred for you but specifying it
                                                              // gives you nice debug messages if you mis-init elements
                                                        
                                                        
                                                              data: { // element data (put json serialisable dev data here)
                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                              },
                                                        
                                                              // scratchpad data (usually temp or nonserialisable data)
                                                              scratch: {
                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                              },
                                                        
                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                x: 100,
                                                                y: 100
                                                              },
                                                        
                                                              selected: false, // whether the element is selected (default false)
                                                        
                                                              selectable: true, // whether the selection state is mutable (default true)
                                                        
                                                              locked: false, // when locked a node's position is immutable (default false)
                                                        
                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                        
                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                        
                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                        
                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                              // USE THE STYLESHEET INSTEAD
                                                              style: { // style property overrides 
                                                                'background-color': 'red'
                                                              }
                                                            },
                                                        
                                                            { // node n2
                                                              data: { id: 'n2' },
                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                            },
                                                        
                                                            { // node n3
                                                              data: { id: 'n3', parent: 'nparent' },
                                                              position: { x: 123, y: 234 }
                                                            },
                                                        
                                                            { // node nparent
                                                              data: { id: 'nparent' }
                                                            },
                                                        
                                                            { // edge e1
                                                              data: {
                                                                id: 'e1',
                                                                // inferred as an edge because `source` and `target` are specified:
                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                              },
                                                        
                                                              pannable: true // whether dragging on the edge causes panning
                                                            }
                                                          ],
                                                        
                                                          layout: {
                                                            name: 'preset'
                                                          },
                                                        
                                                          // so we can see the ids
                                                          style: [
                                                            {
                                                              selector: 'node',
                                                              style: {
                                                                'label': 'data(id)'
                                                              }
                                                            }
                                                          ]
                                                        
                                                        });
                                                        
                                                        77 của một cạnh trong biểu đồ, được tính là một kết nối cạnh đến.

                                                        The value to shift the dimension.

                                                      Outdegree: Đối với một nút, Outdegree là số lượng các kết nối cạnh đi mà nó có. Mỗi lần một nút được gọi là

                                                      cytoscape({
                                                      
                                                        container: document.getElementById('cy'),
                                                      
                                                        elements: [ // flat array of nodes and edges
                                                          { // node n1
                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                            // NB the group field can be automatically inferred for you but specifying it
                                                            // gives you nice debug messages if you mis-init elements
                                                      
                                                      
                                                            data: { // element data (put json serialisable dev data here)
                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                            },
                                                      
                                                            // scratchpad data (usually temp or nonserialisable data)
                                                            scratch: {
                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                            },
                                                      
                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                              x: 100,
                                                              y: 100
                                                            },
                                                      
                                                            selected: false, // whether the element is selected (default false)
                                                      
                                                            selectable: true, // whether the selection state is mutable (default true)
                                                      
                                                            locked: false, // when locked a node's position is immutable (default false)
                                                      
                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                      
                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                      
                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                      
                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                            // USE THE STYLESHEET INSTEAD
                                                            style: { // style property overrides 
                                                              'background-color': 'red'
                                                            }
                                                          },
                                                      
                                                          { // node n2
                                                            data: { id: 'n2' },
                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                          },
                                                      
                                                          { // node n3
                                                            data: { id: 'n3', parent: 'nparent' },
                                                            position: { x: 123, y: 234 }
                                                          },
                                                      
                                                          { // node nparent
                                                            data: { id: 'nparent' }
                                                          },
                                                      
                                                          { // edge e1
                                                            data: {
                                                              id: 'e1',
                                                              // inferred as an edge because `source` and `target` are specified:
                                                              source: 'n1', // the source node id (edge comes from this node)
                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                            },
                                                      
                                                            pannable: true // whether dragging on the edge causes panning
                                                          }
                                                        ],
                                                      
                                                        layout: {
                                                          name: 'preset'
                                                        },
                                                      
                                                        // so we can see the ids
                                                        style: [
                                                          {
                                                            selector: 'node',
                                                            style: {
                                                              'label': 'data(id)'
                                                            }
                                                          }
                                                        ]
                                                      
                                                      });
                                                      
                                                      76 của một cạnh trong biểu đồ, được tính là một kết nối cạnh đi.pos )

                                                      Tổng mức độ: Đối với một tập hợp các nút, tổng mức là tổng số kết nối cạnh với các nút trong tập hợp.

                                                      • Đối tượng posan chỉ định các cặp giá trị tên đại diện cho kích thước để thay đổi.

                                                        An object specifying name-value pairs representing dimensions to shift.

                                                      Ví dụ

                                                      .side-line {
                                                          display: inline-block;
                                                          border-top: 1px solid black;
                                                          width: 20%;
                                                      }
                                                      
                                                      .triangle {
                                                          display: inline-block;
                                                          height: 7px;
                                                          width: 7px;
                                                          transform: rotate(45deg);
                                                          transform-origin: center center;
                                                          border-top: 1px solid black;
                                                          border-left: 1px solid black;
                                                          margin: 0 -3px -3px;
                                                      }
                                                      
                                                      03

                                                      nodes.positions()                   

                                                      Bí danh:

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      83,
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      84,
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      83,
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      84,

                                                      các nút.pocations (, & nbsp; function (ele, i))function(ele, i) )

                                                      Đặt các vị trí thông qua một hàm.

                                                      • hàm (ele, i) một hàm gọi lại trả về vị trí để đặt cho từng phần tử.

                                                        A callback function that returns the position to set for each element.

                                                        • Phần tử elethe được lặp lại mà hàm sẽ trả về một vị trí để đặt.

                                                          The element being iterated over for which the function should return a position to set.

                                                        • Chỉ số của phần tử khi lặp lại các phần tử trong bộ sưu tập.

                                                          The index of the element when iterating over the elements in the collection.

                                                      các nút.pocations (, & nbsp; pos)pos )

                                                      Đặt vị trí cho tất cả các nút dựa trên một đối tượng vị trí duy nhất.

                                                      • Đối tượng posan chỉ định các cặp giá trị tên đại diện cho kích thước để đặt.

                                                        An object specifying name-value pairs representing dimensions to set.

                                                      Ví dụ

                                                      .side-line {
                                                          display: inline-block;
                                                          border-top: 1px solid black;
                                                          width: 20%;
                                                      }
                                                      
                                                      .triangle {
                                                          display: inline-block;
                                                          height: 7px;
                                                          width: 7px;
                                                          transform: rotate(45deg);
                                                          transform-origin: center center;
                                                          border-top: 1px solid black;
                                                          border-left: 1px solid black;
                                                          margin: 0 -3px -3px;
                                                      }
                                                      
                                                      04

                                                      node.renderedPosition()                       

                                                      Bí danh:

                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      83,
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      84,
                                                      <script src="cytoscape.min.js">script>
                                                      
                                                      85,

                                                      node.renderedPosition()

                                                      các nút.pocations (, & nbsp; function (ele, i))

                                                        Đặt các vị trí thông qua một hàm.dimension )

                                                        hàm (ele, i) một hàm gọi lại trả về vị trí để đặt cho từng phần tử.

                                                        • Phần tử elethe được lặp lại mà hàm sẽ trả về một vị trí để đặt.

                                                          The position dimension to get.

                                                        Chỉ số của phần tử khi lặp lại các phần tử trong bộ sưu tập.dimensionvalue )

                                                        các nút.pocations (, & nbsp; pos)

                                                        • Đặt vị trí cho tất cả các nút dựa trên một đối tượng vị trí duy nhất.

                                                          The position dimension to set.

                                                        • Đối tượng posan chỉ định các cặp giá trị tên đại diện cho kích thước để đặt.

                                                          The value to set to the dimension.

                                                        Bí danh:

                                                        <script src="cytoscape.min.js">script>
                                                        
                                                        85,pos )

                                                        Nhận toàn bộ đối tượng vị trí được hiển thị.

                                                        • Đối tượng posan chỉ định các cặp giá trị tên đại diện cho kích thước để đặt.

                                                          An object specifying name-value pairs representing dimensions to set.

                                                        node.relativePosition()                       

                                                        Bí danh:

                                                        <script src="cytoscape.min.js">script>
                                                        
                                                        85,
                                                        <script src="cytoscape.min.js">script>
                                                        
                                                        86,

                                                        Nhận toàn bộ đối tượng vị trí được hiển thị.

                                                        node.relativePosition()

                                                        Node.RenderedPocation (, & NBSP; Dimension)

                                                          Nhận giá trị của một kích thước vị trí được hiển thị được chỉ định.dimension )

                                                          Kích thước kích thước vị trí để có được.

                                                          • Phần tử elethe được lặp lại mà hàm sẽ trả về một vị trí để đặt.

                                                            The position dimension to get.

                                                          Chỉ số của phần tử khi lặp lại các phần tử trong bộ sưu tập.dimensionvalue )

                                                          các nút.pocations (, & nbsp; pos)

                                                          • Đặt vị trí cho tất cả các nút dựa trên một đối tượng vị trí duy nhất.

                                                            The position dimension to set.

                                                          • Đối tượng posan chỉ định các cặp giá trị tên đại diện cho kích thước để đặt.

                                                            The value to set to the dimension.

                                                          Bí danh:

                                                          <script src="cytoscape.min.js">script>
                                                          
                                                          85,pos )

                                                          Nhận toàn bộ đối tượng vị trí được hiển thị.

                                                          • Đối tượng posan chỉ định các cặp giá trị tên đại diện cho kích thước để đặt.

                                                            An object specifying name-value pairs representing dimensions to set.

                                                          Bí danh:

                                                          <script src="cytoscape.min.js">script>
                                                          
                                                          85, et al          

                                                          Nhận toàn bộ đối tượng vị trí được hiển thị.

                                                          ele.outerWidth()

                                                          Node.RenderedPocation (, & NBSP; Dimension)

                                                            Nhận giá trị của một kích thước vị trí được hiển thị được chỉ định.

                                                            Kích thước kích thước vị trí để có được.

                                                              Node.RenderedPocation (, & nbsp; Dimension, & nbsp; value) et al          

                                                              Đặt giá trị của một kích thước vị trí được hiển thị được chỉ định.

                                                              ele.outerHeight()

                                                              Kích thước kích thước vị trí để đặt.

                                                                ele.renderedOuterHeight()

                                                                Giá trị Valuethe để đặt thành kích thước.

                                                                  eles.boundingBox()               

                                                                  Node.RenderedPocation (, & NBSP; POS)

                                                                  <script src="cytoscape.min.js">script>
                                                                  
                                                                  87,
                                                                  <script src="cytoscape.min.js">script>
                                                                  
                                                                  88,

                                                                  Đặt vị trí được hiển thị bằng cách sử dụng các cặp giá trị tên trong đối tượng được chỉ định.options )

                                                                  • Bí danh:
                                                                    <script src="cytoscape.min.js">script>
                                                                    
                                                                    86,

                                                                    An object containing options for the function.

                                                                    • Nhận hoặc đặt vị trí mô hình của một nút, liên quan đến cha mẹ hợp chất của nó.

                                                                      A boolean indicating whether to include nodes in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Nhận toàn bộ đối tượng vị trí tương đối.

                                                                      A boolean indicating whether to include edges in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Node.RelativePocation (, & NBSP; Dimension)

                                                                      A boolean indicating whether to include labels overall in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06). This option overrides all other label options if
                                                                      var a = cy.$('#a'); // assume a compound node
                                                                      
                                                                      // the neighbourhood of `a` contains directly connected elements
                                                                      var directlyConnected = a.neighborhood();
                                                                      
                                                                      // you may want everything connected to its descendants instead
                                                                      // because the descendants "belong" to `a`
                                                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                      
                                                                      52.

                                                                    • Nhận giá trị của một kích thước vị trí tương đối được chỉ định.

                                                                      A boolean indicating whether to include main (node or edge)

                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      93s in the bounding box (default
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • node.relativePocation (, & nbsp; kích thước, & nbsp; value)

                                                                      A boolean indicating whether to include (edge)

                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      95s in the bounding box (default
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Đặt giá trị của một kích thước vị trí tương đối được chỉ định.

                                                                      A boolean indicating whether to include (edge)

                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      97s in the bounding box (default
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Node.RelativePocation (, & NBSP; POS)

                                                                      A boolean indicating whether to include overlays (such as the one which appears when a node is clicked) in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Đặt vị trí tương đối bằng cách sử dụng các cặp giá trị tên trong đối tượng được chỉ định.

                                                                      A boolean indicating whether to include underlays (configurable in node or edge style) in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                  ele.width () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                                  Nhận chiều rộng của phần tử. Chiều rộng thô của phần tử được trả về, không phụ thuộc vào việc phần tử có phải là visibile hay không.

                                                                  Nhận chiều rộng bên ngoài của phần tử theo kích thước mô hình (bao gồm chiều rộng, đệm và đường viền).

                                                                  Lưu ý rằng tùy chọn

                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  16 nhất thiết phải bao gồm các kích thước của phần thân của phần tử. Vì vậy, sử dụng
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  17 với
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  18 chẳng hạn, không có ý nghĩa. Trường hợp tùy chọn
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  16 chỉ hữu ích trong việc có được kích thước không phải là của một phần tử, ví dụ:
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  20. Điều tương tự áp dụng cho tùy chọn
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  21.

                                                                  eles.renderedBoundingBox()           

                                                                  Bí danh:

                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  22,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  22,

                                                                  Nhận hộp giới hạn kết xuất của các yếu tố.

                                                                  eles.renderedboundingbox (, & nbsp; tùy chọn)options )

                                                                  Nhận hộp giới hạn của các yếu tố trong các tọa độ được hiển thị.

                                                                  • Tùy chọn đối tượng có chứa các tùy chọn cho chức năng.

                                                                    An object containing options for the function.

                                                                    • Bao gồm boolean cho biết có nên bao gồm các nút trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include nodes in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Bao gồm boolean cho biết có bao gồm các cạnh trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include edges in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Bao gồm Boolean Boolean cho biết có nên bao gồm các nhãn tổng thể trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06). Tùy chọn này ghi đè tất cả các tùy chọn nhãn khác nếu
                                                                      var a = cy.$('#a'); // assume a compound node
                                                                      
                                                                      // the neighbourhood of `a` contains directly connected elements
                                                                      var directlyConnected = a.neighborhood();
                                                                      
                                                                      // you may want everything connected to its descendants instead
                                                                      // because the descendants "belong" to `a`
                                                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                      
                                                                      52.

                                                                      A boolean indicating whether to include labels overall in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06). This option overrides all other label options if
                                                                      var a = cy.$('#a'); // assume a compound node
                                                                      
                                                                      // the neighbourhood of `a` contains directly connected elements
                                                                      var directlyConnected = a.neighborhood();
                                                                      
                                                                      // you may want everything connected to its descendants instead
                                                                      // because the descendants "belong" to `a`
                                                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                      
                                                                      52.

                                                                    • Bao gồm boolean Boolean cho biết có nên bao gồm chính (nút hay cạnh)
                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      93 trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include main (node or edge)

                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      93s in the bounding box (default
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Bao gồm Boolean Boolean cho biết có nên bao gồm (cạnh)
                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      95 trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include (edge)

                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      95s in the bounding box (default
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Bao gồm boolean Boolean cho biết có bao gồm (cạnh)
                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      97 trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include (edge)

                                                                      <script src="cytoscape.min.js">script>
                                                                      
                                                                      97s in the bounding box (default
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Bao gồm Boolean cho biết có nên bao gồm các lớp phủ (chẳng hạn như mã xuất hiện khi nhấp vào nút) trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include overlays (such as the one which appears when a node is clicked) in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                    • Bao gồm Boolean Boolean cho biết có nên bao gồm các lớp lót (có thể định cấu hình theo kiểu nút hoặc kiểu cạnh) trong hộp giới hạn (mặc định
                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                      A boolean indicating whether to include underlays (configurable in node or edge style) in the bounding box (default

                                                                      cytoscape({
                                                                        container: document.getElementById('cy'),
                                                                      
                                                                        elements: {
                                                                          nodes: [
                                                                            {
                                                                              data: { id: 'a' }
                                                                            },
                                                                      
                                                                            {
                                                                              data: { id: 'b' }
                                                                            }
                                                                          ],
                                                                          edges: [
                                                                            {
                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                            }
                                                                          ]
                                                                        },
                                                                      
                                                                        layout: {
                                                                          name: 'grid',
                                                                          rows: 1
                                                                        },
                                                                      
                                                                        // so we can see the ids
                                                                        style: [
                                                                          {
                                                                            selector: 'node',
                                                                            style: {
                                                                              'label': 'data(id)'
                                                                            }
                                                                          }
                                                                        ]
                                                                      });
                                                                      
                                                                      06).

                                                                  Thông tin chi tiết

                                                                  Hàm này trả về một đối tượng đơn giản với các trường

                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  01,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  02,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  03,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  04,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  05 và
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  06 được xác định.

                                                                  Một phần tử không chiếm không gian (ví dụ:

                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  07) có một hộp giới hạn bằng 0
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  05 và
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  06. Các giá trị
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  01,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  02,
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  03 và
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  04 sẽ không có ý nghĩa đối với các phần tử khu vực không. Để có được vị trí của một nút
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  07, hãy sử dụng
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  15 thay thế.

                                                                  Lưu ý rằng tùy chọn

                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  16 nhất thiết phải bao gồm các kích thước của phần thân của phần tử. Vì vậy, sử dụng
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  17 với
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  18 chẳng hạn, không có ý nghĩa. Trường hợp tùy chọn
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  16 chỉ hữu ích trong việc có được kích thước không phải là của một phần tử, ví dụ:
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  20. Điều tương tự áp dụng cho tùy chọn
                                                                  <script type="module">
                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                  script>
                                                                  
                                                                  21.

                                                                  node.grabbed()   

                                                                  Nhận liệu một nút hiện đang được lấy, có nghĩa là người dùng đã giữ nút.

                                                                  node.grabbable()   

                                                                  Nhận liệu người dùng có thể lấy một nút hay không.

                                                                  nodes.grabify()   

                                                                  Cho phép người dùng lấy các nút.

                                                                  Ví dụ

                                                                  .side-line {
                                                                      display: inline-block;
                                                                      border-top: 1px solid black;
                                                                      width: 20%;
                                                                  }
                                                                  
                                                                  .triangle {
                                                                      display: inline-block;
                                                                      height: 7px;
                                                                      width: 7px;
                                                                      transform: rotate(45deg);
                                                                      transform-origin: center center;
                                                                      border-top: 1px solid black;
                                                                      border-left: 1px solid black;
                                                                      margin: 0 -3px -3px;
                                                                  }
                                                                  
                                                                  05

                                                                  nodes.ungrabify()   

                                                                  Không cho phép người dùng lấy các nút.

                                                                  Ví dụ

                                                                  .side-line {
                                                                      display: inline-block;
                                                                      border-top: 1px solid black;
                                                                      width: 20%;
                                                                  }
                                                                  
                                                                  .triangle {
                                                                      display: inline-block;
                                                                      height: 7px;
                                                                      width: 7px;
                                                                      transform: rotate(45deg);
                                                                      transform-origin: center center;
                                                                      border-top: 1px solid black;
                                                                      border-left: 1px solid black;
                                                                      margin: 0 -3px -3px;
                                                                  }
                                                                  
                                                                  06

                                                                  node.locked()   

                                                                  Không cho phép người dùng lấy các nút.

                                                                  nodes.lock()   

                                                                  Nhận liệu một nút có bị khóa hay không, có nghĩa là vị trí của nó không thể thay đổi.

                                                                  Ví dụ

                                                                  .side-line {
                                                                      display: inline-block;
                                                                      border-top: 1px solid black;
                                                                      width: 20%;
                                                                  }
                                                                  
                                                                  .triangle {
                                                                      display: inline-block;
                                                                      height: 7px;
                                                                      width: 7px;
                                                                      transform: rotate(45deg);
                                                                      transform-origin: center center;
                                                                      border-top: 1px solid black;
                                                                      border-left: 1px solid black;
                                                                      margin: 0 -3px -3px;
                                                                  }
                                                                  
                                                                  07

                                                                  nodes.unlock()   

                                                                  Không cho phép người dùng lấy các nút.

                                                                  Ví dụ

                                                                  .side-line {
                                                                      display: inline-block;
                                                                      border-top: 1px solid black;
                                                                      width: 20%;
                                                                  }
                                                                  
                                                                  .triangle {
                                                                      display: inline-block;
                                                                      height: 7px;
                                                                      width: 7px;
                                                                      transform: rotate(45deg);
                                                                      transform-origin: center center;
                                                                      border-top: 1px solid black;
                                                                      border-left: 1px solid black;
                                                                      margin: 0 -3px -3px;
                                                                  }
                                                                  
                                                                  08

                                                                  ele.active()   

                                                                  Không cho phép người dùng lấy các nút.

                                                                  ele.pannable()   

                                                                  Nhận liệu một nút có bị khóa hay không, có nghĩa là vị trí của nó không thể thay đổi.

                                                                  Khóa các nút sao cho vị trí của chúng không thể thay đổi.

                                                                  Mở khóa các nút sao cho vị trí của chúng có thể được thay đổi.

                                                                  Nhận liệu phần tử có hoạt động hay không (ví dụ: trên Tap, lấy, v.v.).

                                                                  eles.panify()   

                                                                  Nhận được liệu phần tử cho phép tham gia qua.

                                                                  Ví dụ

                                                                  .side-line {
                                                                      display: inline-block;
                                                                      border-top: 1px solid black;
                                                                      width: 20%;
                                                                  }
                                                                  
                                                                  .triangle {
                                                                      display: inline-block;
                                                                      height: 7px;
                                                                      width: 7px;
                                                                      transform: rotate(45deg);
                                                                      transform-origin: center center;
                                                                      border-top: 1px solid black;
                                                                      border-left: 1px solid black;
                                                                      margin: 0 -3px -3px;
                                                                  }
                                                                  
                                                                  09

                                                                  eles.unpanify()   

                                                                  Không cho phép người dùng lấy các nút.

                                                                  Ví dụ

                                                                  .side-line {
                                                                      display: inline-block;
                                                                      border-top: 1px solid black;
                                                                      width: 20%;
                                                                  }
                                                                  
                                                                  .triangle {
                                                                      display: inline-block;
                                                                      height: 7px;
                                                                      width: 7px;
                                                                      transform: rotate(45deg);
                                                                      transform-origin: center center;
                                                                      border-top: 1px solid black;
                                                                      border-left: 1px solid black;
                                                                      margin: 0 -3px -3px;
                                                                  }
                                                                  
                                                                  10

                                                                  Không cho phép người dùng lấy các nút.

                                                                  Nhận liệu một nút có bị khóa hay không, có nghĩa là vị trí của nó không thể thay đổi. et al      

                                                                  edge.renderedControlPoints()

                                                                    Thông tin chi tiết

                                                                    Hàm này trả về một đối tượng đơn giản với các trường

                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    01,
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    02,
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    03,
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    04,
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    05 và
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    06 được xác định.

                                                                    Một phần tử không chiếm không gian (ví dụ:

                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    07) có một hộp giới hạn bằng 0
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    05 và
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    06. Các giá trị
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    01,
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    02,
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    03 và
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    04 sẽ không có ý nghĩa đối với các phần tử khu vực không. Để có được vị trí của một nút
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    07, hãy sử dụng
                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    15 thay thế.

                                                                    Nhận liệu một nút hiện đang được lấy, có nghĩa là người dùng đã giữ nút.

                                                                    • Nhận liệu người dùng có thể lấy một nút hay không.
                                                                    • Cho phép người dùng lấy các nút.
                                                                    • Ví dụ

                                                                    Notes:

                                                                    • Mặc dù các điểm kiểm soát có thể được chỉ định tương đối trong CSS, hàm này trả về các vị trí mô hình tuyệt đối của các điểm điều khiển. Các điểm được chỉ định theo thứ tự hướng nguồn đến mục tiêu.
                                                                    • Hàm này hoạt động cho các beziers đi kèm, nhưng nó không thể áp dụng cho cạnh giữa, đường thẳng trong bó.
                                                                    • Đối với một cạnh bezier không được xử lý, điểm kết hợp hai đường cong bezier liên tiếp trong loạt được đưa ra bởi điểm giữa (trung bình) của hai điểm điều khiển. Điểm tham gia đó chỉ định P2 cho Bezier đầu tiên và nó chỉ định P0 cho Bezier thứ hai.

                                                                    edge.SegmentPoints () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; et al      

                                                                    Nhận một mảng các vị trí điểm phân đoạn (tức là các điểm uốn cong) cho cạnh

                                                                    <script type="module">
                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                    script>
                                                                    
                                                                    62.

                                                                    edge.RenderedSegmentPoints ()

                                                                      Thông tin chi tiết

                                                                      Mặc dù các điểm phân đoạn có thể được chỉ định tương đối trong bảng kiểu, hàm này trả về các vị trí mô hình tuyệt đối của các điểm phân đoạn. Các điểm được chỉ định theo thứ tự hướng nguồn đến mục tiêu.

                                                                      edge.SourceEndPoint () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; et al      

                                                                      Nhận vị trí của nơi cạnh kết thúc, về phía nút nguồn.

                                                                      edge.renderedSourceEndpoint()

                                                                        edge.targetendPoint () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; et al      

                                                                        Lấy vị trí của nơi cạnh kết thúc, về phía nút đích.

                                                                        edge.RenderedTargetEndPoint ()

                                                                          edge.midpoint () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; et al      

                                                                          Nhận vị trí của điểm giữa của cạnh.

                                                                          Thông tin chi tiết

                                                                          Mặc dù các điểm phân đoạn có thể được chỉ định tương đối trong bảng kiểu, hàm này trả về các vị trí mô hình tuyệt đối của các điểm phân đoạn. Các điểm được chỉ định theo thứ tự hướng nguồn đến mục tiêu.

                                                                          edge.SourceEndPoint () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                                          Nhận vị trí của nơi cạnh kết thúc, về phía nút nguồn.

                                                                          edge.targetendPoint () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                                          eles.layout()               

                                                                          Lấy vị trí của nơi cạnh kết thúc, về phía nút đích.

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          65,
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          66,

                                                                          edge.RenderedTargetEndPoint ()

                                                                          edge.midpoint () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;options )

                                                                          • Nhận vị trí của điểm giữa của cạnh.

                                                                            The layout options.

                                                                          Điểm giữa, theo mặc định, trong đó nhãn Edge Edge được tập trung. Nó cũng là vị trí hướng tới điểm trung bình.

                                                                          Đối với các cạnh

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          59, điểm giữa là cực giữa nếu số lượng điểm kiểm soát là lẻ. Đối với số lượng điểm kiểm soát chẵn, điểm giữa là nơi hai điểm kiểm soát nhất ở giữa gặp nhau. Đây là điểm uốn giữa cho các cạnh đối xứng hai bên hoặc độ lệch, ví dụ.

                                                                          Đối với các cạnh

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          62, điểm giữa là điểm phân đoạn giữa nếu số lượng điểm phân đoạn là lẻ. Đối với số lượng điểm chẵn, điểm giữa tổng thể là điểm giữa của phân đoạn đường giữa hầu hết (nghĩa là giá trị trung bình của hai điểm phân đoạn giữa).

                                                                          Cách trình bày

                                                                          Bí danh: 65, 66,

                                                                          Nhận một bố cục mới, có thể được sử dụng để định vị thuật toán các nút trong bộ sưu tập.

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          11

                                                                          eles.layout (, & nbsp; tùy chọn)

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          12

                                                                          nodes.layoutPositions()       

                                                                          Tùy chọn Tùy chọn Bố cục.

                                                                          Hàm này rất hữu ích để chạy một bố cục trên một tập hợp con của các phần tử trong biểu đồ, có lẽ song song với các bố cục khác.

                                                                          Bạn phải chỉ định

                                                                          var a = cy.$('#a'); // assume a compound node
                                                                          
                                                                          // the neighbourhood of `a` contains directly connected elements
                                                                          var directlyConnected = a.neighborhood();
                                                                          
                                                                          // you may want everything connected to its descendants instead
                                                                          // because the descendants "belong" to `a`
                                                                          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                          
                                                                          56 với tên của bố cục bạn muốn sử dụng.layoutoptionsfunction(ele, i) )

                                                                          • Hàm này tạo và trả về một đối tượng bố cục. Bạn có thể muốn giữ một tham chiếu đến bố cục cho các cơ sở USE nâng cao hơn, chẳng hạn như chạy nhiều bố cục cùng một lúc.

                                                                            Lưu ý rằng bạn phải gọi

                                                                            var a = cy.$('#a'); // assume a compound node
                                                                            
                                                                            // the neighbourhood of `a` contains directly connected elements
                                                                            var directlyConnected = a.neighborhood();
                                                                            
                                                                            // you may want everything connected to its descendants instead
                                                                            // because the descendants "belong" to `a`
                                                                            var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                            
                                                                            57 để nó ảnh hưởng đến biểu đồ.

                                                                          • Ví dụ

                                                                            The layout options object.

                                                                          • Gán các vị trí ngẫu nhiên cho tất cả các nút:

                                                                            A function that returns the new position for the specified node.

                                                                            • Áp dụng bố cục vòng tròn chỉ các phần tử được hiển thị:

                                                                              The node being iterated over for which the function should return a position to set.

                                                                            • Chức năng mở rộng: Hàm này được dự định để sử dụng trong các tiện ích mở rộng.

                                                                              The index of the current node while iterating over the nodes in the layout.

                                                                          Định vị các nút cho bố cục rời rạc/đồng bộ.

                                                                          các nút

                                                                          cách trình bày

                                                                          Bố cục.

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          13

                                                                          Tùy chọn đối tượng Tùy chọn Bố cục.

                                                                          node.layoutDimensions()       

                                                                          Tùy chọn Tùy chọn Bố cục.

                                                                          Hàm này rất hữu ích để chạy một bố cục trên một tập hợp con của các phần tử trong biểu đồ, có lẽ song song với các bố cục khác.

                                                                          Bạn phải chỉ định

                                                                          var a = cy.$('#a'); // assume a compound node
                                                                          
                                                                          // the neighbourhood of `a` contains directly connected elements
                                                                          var directlyConnected = a.neighborhood();
                                                                          
                                                                          // you may want everything connected to its descendants instead
                                                                          // because the descendants "belong" to `a`
                                                                          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                          
                                                                          56 với tên của bố cục bạn muốn sử dụng.options )

                                                                          • Ví dụ

                                                                            The layout options object.

                                                                          Gán các vị trí ngẫu nhiên cho tất cả các nút:

                                                                          Hàm này trả về một đối tượng chứa chiều rộng và chiều cao của hộp giới hạn được tính toán dưới các khóa

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          05 và
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          06 tương ứng. Nó có thể được sử dụng để thay thế trực tiếp cho hàm
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          79 chỉ cần các giá trị
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          05 và
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          06.

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          14

                                                                          Lựa chọn

                                                                          ele.selected()   

                                                                          Nhận liệu phần tử được chọn.

                                                                          eles.select()   

                                                                          Làm cho các yếu tố được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.

                                                                          Ví dụ

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          15

                                                                          eles.unselect()       

                                                                          Bí danh:

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,

                                                                          Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.

                                                                          Ví dụ

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          16

                                                                          ele.selectable()   

                                                                          Bí danh:

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,

                                                                          eles.selectify()   

                                                                          Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.

                                                                          Ví dụ

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          17

                                                                          eles.unselectify()   

                                                                          Bí danh:

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,

                                                                          Ví dụ

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          18

                                                                          Bí danh: 82,

                                                                          eles.addClass()       

                                                                          Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.

                                                                          Nhận liệu trạng thái lựa chọn phần tử có thể thay đổi hay không.classes )

                                                                          • Làm cho các trạng thái lựa chọn của các yếu tố có thể thay đổi.

                                                                            An array (or a space-separated string) of class names to add to the elements.

                                                                          Ví dụ

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          19

                                                                          eles.removeClass()       

                                                                          Bí danh:

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,

                                                                          Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.classes )

                                                                          • Nhận liệu trạng thái lựa chọn phần tử có thể thay đổi hay không.

                                                                            An array (or a space-separated string) of class names to remove from the elements.

                                                                          Ví dụ

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          20

                                                                          eles.toggleClass()       

                                                                          Bí danh:

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,

                                                                          Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.classes [toggle] )

                                                                          • Nhận liệu trạng thái lựa chọn phần tử có thể thay đổi hay không.

                                                                            An array (or a space-separated string) of class names to toggle on the elements.

                                                                          • Làm cho các trạng thái lựa chọn của các yếu tố có thể thay đổi. [optional]

                                                                            Instead of automatically toggling, adds the classes on truthy values or removes them on falsey values.

                                                                          Ví dụ

                                                                          Toggle:

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          21

                                                                          Bí danh:

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          82,

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          22

                                                                          Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.

                                                                          .side-line {
                                                                              display: inline-block;
                                                                              border-top: 1px solid black;
                                                                              width: 20%;
                                                                          }
                                                                          
                                                                          .triangle {
                                                                              display: inline-block;
                                                                              height: 7px;
                                                                              width: 7px;
                                                                              transform: rotate(45deg);
                                                                              transform-origin: center center;
                                                                              border-top: 1px solid black;
                                                                              border-left: 1px solid black;
                                                                              margin: 0 -3px -3px;
                                                                          }
                                                                          
                                                                          23

                                                                          Nhận liệu trạng thái lựa chọn phần tử có thể thay đổi hay không. et al          

                                                                          Làm cho các trạng thái lựa chọn của các yếu tố có thể thay đổi.

                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          83,
                                                                          <script type="module">
                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                          script>
                                                                          
                                                                          84,

                                                                          Làm cho các trạng thái lựa chọn của các yếu tố bất biến.

                                                                          ele.classes()

                                                                          Phong cách

                                                                            Thêm các lớp vào các yếu tố. Các lớp nên được chỉ định trong bảng kiểu để có ảnh hưởng đến kiểu được hiển thị của các yếu tố.classes )

                                                                            eles.addclass (, & nbsp; lớp)

                                                                            • Mảng lớp (hoặc chuỗi phân tách không gian) của các tên lớp để thêm vào các phần tử.

                                                                              An array (or a space-separated string) of class names that replaces the current class list.

                                                                            Ví dụ

                                                                            Bí danh:

                                                                            <script type="module">
                                                                            import cytoscape from "./cytoscape.esm.min.js";
                                                                            script>
                                                                            
                                                                            82,

                                                                            .side-line {
                                                                                display: inline-block;
                                                                                border-top: 1px solid black;
                                                                                width: 20%;
                                                                            }
                                                                            
                                                                            .triangle {
                                                                                display: inline-block;
                                                                                height: 7px;
                                                                                width: 7px;
                                                                                transform: rotate(45deg);
                                                                                transform-origin: center center;
                                                                                border-top: 1px solid black;
                                                                                border-left: 1px solid black;
                                                                                margin: 0 -3px -3px;
                                                                            }
                                                                            
                                                                            24

                                                                            Làm cho các yếu tố không được chọn. Các yếu tố bên ngoài bộ sưu tập không bị ảnh hưởng.

                                                                            .side-line {
                                                                                display: inline-block;
                                                                                border-top: 1px solid black;
                                                                                width: 20%;
                                                                            }
                                                                            
                                                                            .triangle {
                                                                                display: inline-block;
                                                                                height: 7px;
                                                                                width: 7px;
                                                                                transform: rotate(45deg);
                                                                                transform-origin: center center;
                                                                                border-top: 1px solid black;
                                                                                border-left: 1px solid black;
                                                                                margin: 0 -3px -3px;
                                                                            }
                                                                            
                                                                            25

                                                                            eles.flashClass()       

                                                                            Nhận liệu trạng thái lựa chọn phần tử có thể thay đổi hay không.

                                                                            Làm cho các trạng thái lựa chọn của các yếu tố có thể thay đổi.classes [duration] )

                                                                            • Làm cho các trạng thái lựa chọn của các yếu tố bất biến.

                                                                              An array (or a space-separated string) of class names to flash on the elements.

                                                                            • Phong cách [optional]

                                                                              The duration in milliseconds that the classes should be added on the elements. After the duration, the classes are removed.

                                                                            Ví dụ

                                                                            .side-line {
                                                                                display: inline-block;
                                                                                border-top: 1px solid black;
                                                                                width: 20%;
                                                                            }
                                                                            
                                                                            .triangle {
                                                                                display: inline-block;
                                                                                height: 7px;
                                                                                width: 7px;
                                                                                transform: rotate(45deg);
                                                                                transform-origin: center center;
                                                                                border-top: 1px solid black;
                                                                                border-left: 1px solid black;
                                                                                margin: 0 -3px -3px;
                                                                            }
                                                                            
                                                                            26

                                                                            ele.hasClass()       

                                                                            Thêm các lớp vào các yếu tố. Các lớp nên được chỉ định trong bảng kiểu để có ảnh hưởng đến kiểu được hiển thị của các yếu tố.

                                                                            eles.addclass (, & nbsp; lớp)className )

                                                                            • Mảng lớp (hoặc chuỗi phân tách không gian) của các tên lớp để thêm vào các phần tử.

                                                                              The name of the class to test for.

                                                                            Ví dụ

                                                                            .side-line {
                                                                                display: inline-block;
                                                                                border-top: 1px solid black;
                                                                                width: 20%;
                                                                            }
                                                                            
                                                                            .triangle {
                                                                                display: inline-block;
                                                                                height: 7px;
                                                                                width: 7px;
                                                                                transform: rotate(45deg);
                                                                                transform-origin: center center;
                                                                                border-top: 1px solid black;
                                                                                border-left: 1px solid black;
                                                                                margin: 0 -3px -3px;
                                                                            }
                                                                            
                                                                            27

                                                                            Loại bỏ các lớp khỏi các yếu tố. Các lớp nên được chỉ định trong bảng kiểu để có ảnh hưởng đến kiểu được hiển thị của các yếu tố. et al                

                                                                            eles.removeclass (, & nbsp; lớp)

                                                                            <script type="module">
                                                                            import cytoscape from "./cytoscape.esm.min.js";
                                                                            script>
                                                                            
                                                                            85,

                                                                            Mảng lớp (hoặc chuỗi phân tách không gian) của các tên lớp để xóa khỏi các phần tử.

                                                                            ele.style()

                                                                            Chuyển đổi xem các phần tử có các lớp được chỉ định hay không. Các lớp nên được chỉ định trong bảng kiểu để có ảnh hưởng đến kiểu được hiển thị của các yếu tố.

                                                                              eles.toggleclass (, & nbsp; lớp [, & nbsp; chuyển đổi]))name )

                                                                              Mảng lớp (hoặc chuỗi phân tách không gian) của các tên lớp để chuyển đổi trên các phần tử.

                                                                              • Chuyển đổi [Tùy chọn] thay vì tự động chuyển đổi, thêm các lớp vào các giá trị sự thật hoặc xóa chúng trên các giá trị giả.

                                                                                The name of the visual style property to get.

                                                                              Bật lên:namevalue )

                                                                              Chuyển đổi:

                                                                              • eles. class () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                                                The name of the visual style property to set.

                                                                              • Bí danh:
                                                                                <script type="module">
                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                script>
                                                                                
                                                                                83,
                                                                                <script type="module">
                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                script>
                                                                                
                                                                                84,

                                                                                The value of the visual style property to set.

                                                                              Nhận hoặc thay thế danh sách các lớp hiện tại trên các yếu tố với danh sách được chỉ định.obj )

                                                                              Nhận danh sách các lớp như một mảng cho phần tử.

                                                                              • eles.classes (, & nbsp; lớp)

                                                                                An object of style property name-value pairs to set.

                                                                              eles.removeStyle()

                                                                              Thay thế danh sách các lớp cho tất cả các yếu tố trong bộ sưu tập.

                                                                                Mảng lớp (hoặc chuỗi phân tách không gian) của các tên lớp thay thế danh sách lớp hiện tại.names )

                                                                                Xóa tất cả các lớp:

                                                                                • Thay thế các lớp:

                                                                                  A space-separated list of property names to remove overrides.

                                                                                Thêm các lớp vào các phần tử, sau đó xóa các lớp sau một thời lượng được chỉ định.

                                                                                eles.flashclass (, & nbsp; lớp [, & nbsp; thời lượng]))

                                                                                • Mảng lớp (hoặc chuỗi phân tách không gian) của các tên lớp để flash trên các phần tử.
                                                                                • Thời lượng [Tùy chọn] Thời lượng tính bằng mili giây mà các lớp nên được thêm vào các yếu tố. Sau thời gian, các lớp được loại bỏ.
                                                                                • Nhận liệu một yếu tố có một lớp cụ thể.
                                                                                • ele.hasclass (, & nbsp; className)

                                                                                Tên classnamethe của lớp để kiểm tra cho.

                                                                                Nếu bạn muốn xóa một thuộc tính kiểu ghi đè cụ thể, bạn có thể đặt

                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                
                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                var directlyConnected = a.neighborhood();
                                                                                
                                                                                // you may want everything connected to its descendants instead
                                                                                // because the descendants "belong" to `a`
                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                
                                                                                11 hoặc
                                                                                <script type="module">
                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                script>
                                                                                
                                                                                89 (chuỗi trống) thành nó.

                                                                                ele.numericStyle()       

                                                                                Nhận giá trị số của thuộc tính kiểu trong các đơn vị ưa thích có thể được sử dụng để tính toán.

                                                                                ele.numericstyle (, & nbsp; name)name )

                                                                                • Tên Namethe của thuộc tính kiểu để có được.

                                                                                  The name of the style property to get.

                                                                                Thông tin chi tiết

                                                                                • Kích thước (ví dụ:
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  90) nằm trong các pixel mô hình.
                                                                                • Thời gian (ví dụ:
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  91) là trong mili giây.
                                                                                • Các góc (ví dụ:
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  92) nằm trong radian.
                                                                                • Các số đơn giản (ví dụ:
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  93) là không đơn vị.
                                                                                • Màu sắc (ví dụ:
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  94) nằm trong
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  95 mảng có giá trị trên [0, 255].
                                                                                • Danh sách các số (ví dụ:
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  96) nằm trong các mảng.
                                                                                • Phần trăm phạm vi trên [0, 1] để chúng hữu ích cho các tính toán.
                                                                                • Một số thuộc tính không thể có các đơn vị ưa thích được xác định, như
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  97 - nó có thể có trong
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  98 hoặc
                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  99, ví dụ. Một thuộc tính như thế này được trả về trong các đơn vị như được chỉ định theo kiểu phần tử (ví dụ: bảng kiểu). Trong trường hợp này, các đơn vị có thể được trả lại một cách rõ ràng thông qua
                                                                                  #cy {
                                                                                    width: 300px;
                                                                                    height: 300px;
                                                                                    display: block;
                                                                                  }
                                                                                  
                                                                                  00.
                                                                                • Các giá trị không thể được biểu thị dưới dạng số (ví dụ:
                                                                                  <script src="cytoscape.min.js">script>
                                                                                  
                                                                                  93) được trả về dưới dạng chuỗi.

                                                                                Ví dụ

                                                                                #cy {
                                                                                  width: 300px;
                                                                                  height: 300px;
                                                                                  display: block;
                                                                                }
                                                                                
                                                                                02 sẽ trả về
                                                                                #cy {
                                                                                  width: 300px;
                                                                                  height: 300px;
                                                                                  display: block;
                                                                                }
                                                                                
                                                                                03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                #cy {
                                                                                  width: 300px;
                                                                                  height: 300px;
                                                                                  display: block;
                                                                                }
                                                                                
                                                                                04.

                                                                                ele.numericStyleUnits()       

                                                                                Nhận các đơn vị mà

                                                                                cytoscape({
                                                                                  container: document.getElementById('cy'),
                                                                                
                                                                                  elements: {
                                                                                    nodes: [
                                                                                      {
                                                                                        data: { id: 'a' }
                                                                                      },
                                                                                
                                                                                      {
                                                                                        data: { id: 'b' }
                                                                                      }
                                                                                    ],
                                                                                    edges: [
                                                                                      {
                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                      }
                                                                                    ]
                                                                                  },
                                                                                
                                                                                  layout: {
                                                                                    name: 'grid',
                                                                                    rows: 1
                                                                                  },
                                                                                
                                                                                  // so we can see the ids
                                                                                  style: [
                                                                                    {
                                                                                      selector: 'node',
                                                                                      style: {
                                                                                        'label': 'data(id)'
                                                                                      }
                                                                                    }
                                                                                  ]
                                                                                });
                                                                                
                                                                                79 được thể hiện, cho một thuộc tính cụ thể.

                                                                                ele.numericstyleunits (, & nbsp; tên)name )

                                                                                • Tên Namethe của thuộc tính kiểu để có được.

                                                                                  The name of the style property to get.

                                                                                Thông tin chi tiết et al      

                                                                                Kích thước (ví dụ:

                                                                                <script type="module">
                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                script>
                                                                                
                                                                                90) nằm trong các pixel mô hình.

                                                                                ele.visible()

                                                                                Thời gian (ví dụ:

                                                                                <script type="module">
                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                script>
                                                                                
                                                                                91) là trong mili giây.

                                                                                  ele.hidden()

                                                                                  Các góc (ví dụ:

                                                                                  <script type="module">
                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                  script>
                                                                                  
                                                                                  92) nằm trong radian.

                                                                                    ele.effectiveOpacity()   

                                                                                    Các số đơn giản (ví dụ:

                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    93) là không đơn vị.

                                                                                    ele.transparent()   

                                                                                    Màu sắc (ví dụ:

                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    94) nằm trong
                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    95 mảng có giá trị trên [0, 255].

                                                                                    Danh sách các số (ví dụ: 96) nằm trong các mảng.

                                                                                    ele.animated()   

                                                                                    Phần trăm phạm vi trên [0, 1] để chúng hữu ích cho các tính toán.

                                                                                    eles.animate()       

                                                                                    Một số thuộc tính không thể có các đơn vị ưa thích được xác định, như

                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    97 - nó có thể có trong
                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    98 hoặc
                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    99, ví dụ. Một thuộc tính như thế này được trả về trong các đơn vị như được chỉ định theo kiểu phần tử (ví dụ: bảng kiểu). Trong trường hợp này, các đơn vị có thể được trả lại một cách rõ ràng thông qua
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    00.

                                                                                    Các giá trị không thể được biểu thị dưới dạng số (ví dụ:

                                                                                    <script src="cytoscape.min.js">script>
                                                                                    
                                                                                    93) được trả về dưới dạng chuỗi.options )

                                                                                    • Ví dụ

                                                                                      An object containing the details of the animation.

                                                                                      • #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        02 sẽ trả về
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        04.

                                                                                        A position to which the elements will be animated.

                                                                                      • Nhận các đơn vị mà
                                                                                        cytoscape({
                                                                                          container: document.getElementById('cy'),
                                                                                        
                                                                                          elements: {
                                                                                            nodes: [
                                                                                              {
                                                                                                data: { id: 'a' }
                                                                                              },
                                                                                        
                                                                                              {
                                                                                                data: { id: 'b' }
                                                                                              }
                                                                                            ],
                                                                                            edges: [
                                                                                              {
                                                                                                data: { id: 'ab', source: 'a', target: 'b' }
                                                                                              }
                                                                                            ]
                                                                                          },
                                                                                        
                                                                                          layout: {
                                                                                            name: 'grid',
                                                                                            rows: 1
                                                                                          },
                                                                                        
                                                                                          // so we can see the ids
                                                                                          style: [
                                                                                            {
                                                                                              selector: 'node',
                                                                                              style: {
                                                                                                'label': 'data(id)'
                                                                                              }
                                                                                            }
                                                                                          ]
                                                                                        });
                                                                                        
                                                                                        79 được thể hiện, cho một thuộc tính cụ thể.

                                                                                        A rendered position to which the elements will be animated.

                                                                                      • ele.numericstyleunits (, & nbsp; tên)

                                                                                        An object containing name-value pairs of style properties to animate.

                                                                                      • ele.visible () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                                                        The duration of the animation in milliseconds.

                                                                                      • Nhận được liệu phần tử có thể nhìn thấy hay không (nghĩa là
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        06 và
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        07).

                                                                                        A boolean indicating whether to queue the animation (default

                                                                                        cytoscape({
                                                                                          container: document.getElementById('cy'),
                                                                                        
                                                                                          elements: {
                                                                                            nodes: [
                                                                                              {
                                                                                                data: { id: 'a' }
                                                                                              },
                                                                                        
                                                                                              {
                                                                                                data: { id: 'b' }
                                                                                              }
                                                                                            ],
                                                                                            edges: [
                                                                                              {
                                                                                                data: { id: 'ab', source: 'a', target: 'b' }
                                                                                              }
                                                                                            ]
                                                                                          },
                                                                                        
                                                                                          layout: {
                                                                                            name: 'grid',
                                                                                            rows: 1
                                                                                          },
                                                                                        
                                                                                          // so we can see the ids
                                                                                          style: [
                                                                                            {
                                                                                              selector: 'node',
                                                                                              style: {
                                                                                                'label': 'data(id)'
                                                                                              }
                                                                                            }
                                                                                          ]
                                                                                        });
                                                                                        
                                                                                        06).

                                                                                      • Nhận được liệu phần tử có thể nhìn thấy không.

                                                                                        A

                                                                                        var a = cy.$('#a'); // assume a compound node
                                                                                        
                                                                                        // the neighbourhood of `a` contains directly connected elements
                                                                                        var directlyConnected = a.neighborhood();
                                                                                        
                                                                                        // you may want everything connected to its descendants instead
                                                                                        // because the descendants "belong" to `a`
                                                                                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                        
                                                                                        49 easing style string that shapes the animation progress curve.

                                                                                      • Nhận liệu phần tử có bị ẩn không.

                                                                                        A function to call when the animation is done.

                                                                                      • Có được độ mờ hiệu quả của phần tử (nghĩa là độ mờ trên màn hình), có tính đến độ mờ của nút cha mẹ.

                                                                                        A function to call each time the animation steps.

                                                                                    Thông tin chi tiết

                                                                                    Kích thước (ví dụ:

                                                                                    <script type="module">
                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                    script>
                                                                                    
                                                                                    90) nằm trong các pixel mô hình.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    28

                                                                                    ele.animation()       

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    02 sẽ trả về
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    04.options )

                                                                                    • Ví dụ

                                                                                      An object containing the details of the animation.

                                                                                      • #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        02 sẽ trả về
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        04.

                                                                                        A position to which the elements will be animated.

                                                                                      • Nhận các đơn vị mà
                                                                                        cytoscape({
                                                                                          container: document.getElementById('cy'),
                                                                                        
                                                                                          elements: {
                                                                                            nodes: [
                                                                                              {
                                                                                                data: { id: 'a' }
                                                                                              },
                                                                                        
                                                                                              {
                                                                                                data: { id: 'b' }
                                                                                              }
                                                                                            ],
                                                                                            edges: [
                                                                                              {
                                                                                                data: { id: 'ab', source: 'a', target: 'b' }
                                                                                              }
                                                                                            ]
                                                                                          },
                                                                                        
                                                                                          layout: {
                                                                                            name: 'grid',
                                                                                            rows: 1
                                                                                          },
                                                                                        
                                                                                          // so we can see the ids
                                                                                          style: [
                                                                                            {
                                                                                              selector: 'node',
                                                                                              style: {
                                                                                                'label': 'data(id)'
                                                                                              }
                                                                                            }
                                                                                          ]
                                                                                        });
                                                                                        
                                                                                        79 được thể hiện, cho một thuộc tính cụ thể.

                                                                                        A rendered position to which the elements will be animated.

                                                                                      • ele.numericstyleunits (, & nbsp; tên)

                                                                                        An object containing name-value pairs of style properties to animate.

                                                                                      • ele.visible () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

                                                                                        The duration of the animation in milliseconds.

                                                                                      • Nhận được liệu phần tử có thể nhìn thấy không.

                                                                                        A

                                                                                        var a = cy.$('#a'); // assume a compound node
                                                                                        
                                                                                        // the neighbourhood of `a` contains directly connected elements
                                                                                        var directlyConnected = a.neighborhood();
                                                                                        
                                                                                        // you may want everything connected to its descendants instead
                                                                                        // because the descendants "belong" to `a`
                                                                                        var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                        
                                                                                        49 easing style string that shapes the animation progress curve.

                                                                                      • Nhận liệu phần tử có bị ẩn không.

                                                                                        A function to call when the animation is done.

                                                                                      • Có được độ mờ hiệu quả của phần tử (nghĩa là độ mờ trên màn hình), có tính đến độ mờ của nút cha mẹ.

                                                                                        A function to call each time the animation steps.

                                                                                    eles.delay()       

                                                                                    Có được liệu phần tử độ mờ hiệu quả có hoàn toàn trong suốt hay không, có tính đến độ mờ của nút cha mẹ hay không.

                                                                                    Hoạt hìnhdurationcomplete )

                                                                                    • Nhận liệu các yếu tố hiện đang được hoạt hình.

                                                                                      How long the delay should be in milliseconds.

                                                                                    • Làm động các yếu tố.

                                                                                      A function to call when the delay is complete.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    29

                                                                                    ele.delayAnimation()       

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    02 sẽ trả về
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    04.

                                                                                    Nhận các đơn vị mà

                                                                                    cytoscape({
                                                                                      container: document.getElementById('cy'),
                                                                                    
                                                                                      elements: {
                                                                                        nodes: [
                                                                                          {
                                                                                            data: { id: 'a' }
                                                                                          },
                                                                                    
                                                                                          {
                                                                                            data: { id: 'b' }
                                                                                          }
                                                                                        ],
                                                                                        edges: [
                                                                                          {
                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                          }
                                                                                        ]
                                                                                      },
                                                                                    
                                                                                      layout: {
                                                                                        name: 'grid',
                                                                                        rows: 1
                                                                                      },
                                                                                    
                                                                                      // so we can see the ids
                                                                                      style: [
                                                                                        {
                                                                                          selector: 'node',
                                                                                          style: {
                                                                                            'label': 'data(id)'
                                                                                          }
                                                                                        }
                                                                                      ]
                                                                                    });
                                                                                    
                                                                                    79 được thể hiện, cho một thuộc tính cụ thể.duration )

                                                                                    • Nhận liệu các yếu tố hiện đang được hoạt hình.

                                                                                      How long the delay should be in milliseconds.

                                                                                    eles.stop()       

                                                                                    Làm động các yếu tố.

                                                                                    eles.Animate (, & nbsp; Tùy chọn)clearQueuejumpToEnd )

                                                                                    • Đối tượng tùy chọn chứa các chi tiết của hình ảnh động.

                                                                                      A boolean, indicating whether the queue of animations should be emptied.

                                                                                    • Vị trí vị trí mà các yếu tố sẽ được hoạt hình.

                                                                                      A boolean, indicating whether the currently-running animations should jump to their ends rather than just stopping midway.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    30

                                                                                    eles.clearQueue()   

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    02 sẽ trả về
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    04.

                                                                                    Nhận các đơn vị mà cytoscape({ container: document.getElementById('cy'), elements: { nodes: [ { data: { id: 'a' } }, { data: { id: 'b' } } ], edges: [ { data: { id: 'ab', source: 'a', target: 'b' } } ] }, layout: { name: 'grid', rows: 1 }, // so we can see the ids style: [ { selector: 'node', style: { 'label': 'data(id)' } } ] }); 79 được thể hiện, cho một thuộc tính cụ thể.

                                                                                    eles.same()       

                                                                                    ele.numericstyleunits (, & nbsp; tên)

                                                                                    ele.visible () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;eles )

                                                                                    • Nhận được liệu phần tử có thể nhìn thấy hay không (nghĩa là
                                                                                      #cy {
                                                                                        width: 300px;
                                                                                        height: 300px;
                                                                                        display: block;
                                                                                      }
                                                                                      
                                                                                      06 và
                                                                                      #cy {
                                                                                        width: 300px;
                                                                                        height: 300px;
                                                                                        display: block;
                                                                                      }
                                                                                      
                                                                                      07).

                                                                                      The other elements to compare to.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    31

                                                                                    eles.anySame()       

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    02 sẽ trả về
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    03 cho nút rộng 30px, ngay cả khi nút được chỉ định là
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    04.

                                                                                    eles.anysame (, & nbsp; eles)eles )

                                                                                    • Elesthe các yếu tố khác để so sánh với.

                                                                                      The other elements to compare to.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    32

                                                                                    eles.contains()           

                                                                                    Bí danh:

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    13,
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    13,

                                                                                    Xác định xem bộ sưu tập này có chứa tất cả các yếu tố của một bộ sưu tập khác hay không.

                                                                                    eles.contains (, & nbsp; eles)eles )

                                                                                    • Elesthe các yếu tố khác để so sánh với.

                                                                                      The other elements to compare to.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    33

                                                                                    eles.allAreNeighbors()           

                                                                                    Bí danh:

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    13,
                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    14,

                                                                                    Xác định xem bộ sưu tập này có chứa tất cả các yếu tố của một bộ sưu tập khác hay không.

                                                                                    eles.contains (, & nbsp; eles)eles )

                                                                                    • Elesthe các yếu tố khác để so sánh với.

                                                                                      The other elements to compare to.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    34

                                                                                    eles.is()       

                                                                                    Bí danh:

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    13,

                                                                                    Xác định xem bộ sưu tập này có chứa tất cả các yếu tố của một bộ sưu tập khác hay không.selector )

                                                                                    • eles.contains (, & nbsp; eles)

                                                                                      The selector to match against.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    35

                                                                                    eles.allAre()       

                                                                                    Bí danh:

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    13,

                                                                                    Xác định xem bộ sưu tập này có chứa tất cả các yếu tố của một bộ sưu tập khác hay không.selector )

                                                                                    • eles.contains (, & nbsp; eles)

                                                                                      The selector to match against.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    36

                                                                                    eles.some()       

                                                                                    Bí danh:

                                                                                    #cy {
                                                                                      width: 300px;
                                                                                      height: 300px;
                                                                                      display: block;
                                                                                    }
                                                                                    
                                                                                    13,

                                                                                    Xác định xem bộ sưu tập này có chứa tất cả các yếu tố của một bộ sưu tập khác hay không.function(ele, i, eles) [thisArg] )

                                                                                    • eles.contains (, & nbsp; eles)

                                                                                      The test function that returns truthy values for elements that satisfy the test and falsey values for elements that do not satisfy the test.

                                                                                      • Bí danh:
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        14,

                                                                                        The current element.

                                                                                      • Xác định xem tất cả các yếu tố trong bộ sưu tập được chỉ định có trong khu vực lân cận của bộ sưu tập gọi hay không.

                                                                                        The index of the current element.

                                                                                      • eles.allareneighbors (, & nbsp; eles)

                                                                                        The collection of elements being tested.

                                                                                    • Xác định xem bất kỳ yếu tố nào trong bộ sưu tập này có phù hợp với bộ chọn hay không. [optional]

                                                                                      The value for

                                                                                      #cy {
                                                                                        width: 300px;
                                                                                        height: 300px;
                                                                                        display: block;
                                                                                      }
                                                                                      
                                                                                      15 within the test function.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    37

                                                                                    eles.every()       

                                                                                    eles.is (, & nbsp; selector)

                                                                                    bộ chọn Selector để phù hợp với.function(ele, i, eles) [thisArg] )

                                                                                    • eles.contains (, & nbsp; eles)

                                                                                      The test function that returns truthy values for elements that satisfy the test and falsey values for elements that do not satisfy the test.

                                                                                      • Bí danh:
                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        14,

                                                                                        The current element.

                                                                                      • Xác định xem tất cả các yếu tố trong bộ sưu tập được chỉ định có trong khu vực lân cận của bộ sưu tập gọi hay không.

                                                                                        The index of the current element.

                                                                                      • eles.allareneighbors (, & nbsp; eles)

                                                                                        The collection of elements being tested.

                                                                                    • Xác định xem bất kỳ yếu tố nào trong bộ sưu tập này có phù hợp với bộ chọn hay không. [optional]

                                                                                      The value for

                                                                                      #cy {
                                                                                        width: 300px;
                                                                                        height: 300px;
                                                                                        display: block;
                                                                                      }
                                                                                      
                                                                                      15 within the test function.

                                                                                    Ví dụ

                                                                                    .side-line {
                                                                                        display: inline-block;
                                                                                        border-top: 1px solid black;
                                                                                        width: 20%;
                                                                                    }
                                                                                    
                                                                                    .triangle {
                                                                                        display: inline-block;
                                                                                        height: 7px;
                                                                                        width: 7px;
                                                                                        transform: rotate(45deg);
                                                                                        transform-origin: center center;
                                                                                        border-top: 1px solid black;
                                                                                        border-left: 1px solid black;
                                                                                        margin: 0 -3px -3px;
                                                                                    }
                                                                                    
                                                                                    38

                                                                                    eles.is (, & nbsp; selector)

                                                                                    eles.size()   

                                                                                    bộ chọn Selector để phù hợp với.

                                                                                    Xác định xem tất cả các yếu tố trong bộ sưu tập có phù hợp với bộ chọn hay không.

                                                                                    eles.allare (, & nbsp; selector)

                                                                                    Xác định xem bất kỳ yếu tố nào trong bộ sưu tập này đều thỏa mãn chức năng thử nghiệm được chỉ định. et al      

                                                                                    eles.some (, & nbsp; function (ele, i, eles) [, & nbsp; thisarg]))

                                                                                    eles.empty()

                                                                                    Hàm (Ele, I, ELES) Hàm thử nghiệm trả về các giá trị sự thật cho các phần tử đáp ứng các giá trị kiểm tra và sai cho các phần tử không thỏa mãn thử nghiệm.

                                                                                      Elethe yếu tố hiện tại.

                                                                                      Chỉ số Ithe của phần tử hiện tại.

                                                                                        eles.forEach()           

                                                                                        Elesthe Bộ sưu tập các yếu tố đang được thử nghiệm.

                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        19,

                                                                                        ThisArg [Tùy chọn] Giá trị cho

                                                                                        #cy {
                                                                                          width: 300px;
                                                                                          height: 300px;
                                                                                          display: block;
                                                                                        }
                                                                                        
                                                                                        15 trong hàm thử nghiệm.

                                                                                        Xác định xem tất cả các yếu tố trong bộ sưu tập này có đáp ứng chức năng thử nghiệm được chỉ định hay không.function(ele, i, eles) [thisArg] )

                                                                                        • eles. mọi người (, & nbsp; function (ele, i, eles) [, & nbsp; thisarg])

                                                                                          The function executed each iteration.

                                                                                          • Bí danh:
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            14,

                                                                                            The current element.

                                                                                          • Xác định xem tất cả các yếu tố trong bộ sưu tập được chỉ định có trong khu vực lân cận của bộ sưu tập gọi hay không.

                                                                                            The index of the current element.

                                                                                          • eles.allareneighbors (, & nbsp; eles)

                                                                                            The collection of elements being iterated.

                                                                                        • Xác định xem bất kỳ yếu tố nào trong bộ sưu tập này có phù hợp với bộ chọn hay không. [optional]

                                                                                          The value for

                                                                                          #cy {
                                                                                            width: 300px;
                                                                                            height: 300px;
                                                                                            display: block;
                                                                                          }
                                                                                          
                                                                                          15 within the iterating function.

                                                                                        Xác định xem tất cả các yếu tố trong bộ sưu tập có phù hợp với bộ chọn hay không.

                                                                                        eles.allare (, & nbsp; selector)

                                                                                        • Xác định xem bất kỳ yếu tố nào trong bộ sưu tập này đều thỏa mãn chức năng thử nghiệm được chỉ định.

                                                                                        Ví dụ

                                                                                        .side-line {
                                                                                            display: inline-block;
                                                                                            border-top: 1px solid black;
                                                                                            width: 20%;
                                                                                        }
                                                                                        
                                                                                        .triangle {
                                                                                            display: inline-block;
                                                                                            height: 7px;
                                                                                            width: 7px;
                                                                                            transform: rotate(45deg);
                                                                                            transform-origin: center center;
                                                                                            border-top: 1px solid black;
                                                                                            border-left: 1px solid black;
                                                                                            margin: 0 -3px -3px;
                                                                                        }
                                                                                        
                                                                                        39

                                                                                        eles.some (, & nbsp; function (ele, i, eles) [, & nbsp; thisarg])) et al        

                                                                                        Hàm (Ele, I, ELES) Hàm thử nghiệm trả về các giá trị sự thật cho các phần tử đáp ứng các giá trị kiểm tra và sai cho các phần tử không thỏa mãn thử nghiệm.

                                                                                        Elethe yếu tố hiện tại.index )

                                                                                        • Chỉ số Ithe của phần tử hiện tại.

                                                                                          The index of the element to get.

                                                                                        eles.first()

                                                                                        Elesthe Bộ sưu tập các yếu tố đang được thử nghiệm.

                                                                                          eles.last()

                                                                                          ThisArg [Tùy chọn] Giá trị cho

                                                                                          #cy {
                                                                                            width: 300px;
                                                                                            height: 300px;
                                                                                            display: block;
                                                                                          }
                                                                                          
                                                                                          15 trong hàm thử nghiệm.

                                                                                            Xác định xem tất cả các yếu tố trong bộ sưu tập có phù hợp với bộ chọn hay không.

                                                                                            eles.allare (, & nbsp; selector)

                                                                                            eles.slice()       

                                                                                            Xác định xem bất kỳ yếu tố nào trong bộ sưu tập này đều thỏa mãn chức năng thử nghiệm được chỉ định.

                                                                                            eles.some (, & nbsp; function (ele, i, eles) [, & nbsp; thisarg])) [start] [end] )

                                                                                            • Hàm (Ele, I, ELES) Hàm thử nghiệm trả về các giá trị sự thật cho các phần tử đáp ứng các giá trị kiểm tra và sai cho các phần tử không thỏa mãn thử nghiệm. [optional]

                                                                                              An integer that specifies where to start the selection. The first element has an index of 0. Use negative numbers to select from the end of an array.

                                                                                            • Elethe yếu tố hiện tại. [optional]

                                                                                              An integer that specifies where to end the selection. If omitted, all elements from the start position and to the end of the array will be selected. Use negative numbers to select from the end of an array.

                                                                                            eles.toArray()   

                                                                                            Chỉ số Ithe của phần tử hiện tại.

                                                                                            Elesthe Bộ sưu tập các yếu tố đang được thử nghiệm.

                                                                                            eles.getElementById()           

                                                                                            ThisArg [Tùy chọn] Giá trị cho

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            15 trong hàm thử nghiệm.
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            26,

                                                                                            Xác định xem tất cả các yếu tố trong bộ sưu tập này có đáp ứng chức năng thử nghiệm được chỉ định hay không.

                                                                                            eles. mọi người (, & nbsp; function (ele, i, eles) [, & nbsp; thisarg])id )

                                                                                            • Lặp đi lặp lại

                                                                                              The ID of the element to get.

                                                                                            eles.union()                               

                                                                                            Nhận số lượng các yếu tố trong bộ sưu tập.

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            27,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            28,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            29,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            30,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            31,

                                                                                            Thông tin chi tiết

                                                                                            eles.union (, & nbsp; eles)eles )

                                                                                            • Elesthe yếu tố để thêm.

                                                                                              The elements to add.

                                                                                            eles.union (, & nbsp; selector)selector )

                                                                                            • SelectorEnsements trong biểu đồ khớp với bộ chọn này được thêm vào.

                                                                                              Elements in the graph matching this selector are added.

                                                                                            Ví dụ

                                                                                            Với một bộ sưu tập:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            40

                                                                                            Với một bộ chọn:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            41

                                                                                            eles.difference()                                   

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            32,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            33,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            34,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            35,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            36,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            37,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            32,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            33,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            34,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            35,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            36,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            37,

                                                                                            Nhận một bộ sưu tập mới, kết quả từ bộ sưu tập mà không có một số yếu tố cụ thể.

                                                                                            eles.difference (, & nbsp; eles)eles )

                                                                                            • Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.

                                                                                              The elements that will not be in the resultant collection.

                                                                                            eles.difference (, & nbsp; selector)selector )

                                                                                            • Selectorelements từ bộ sưu tập gọi phù hợp với bộ chọn này sẽ không nằm trong bộ sưu tập kết quả.

                                                                                              Elements from the calling collection matching this selector will not be in the resultant collection.

                                                                                            Ví dụ

                                                                                            Với một bộ sưu tập:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            42

                                                                                            Với một bộ chọn:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            43

                                                                                            eles.absoluteComplement()           

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            32,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            33,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            34,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            35,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            36,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            37,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            38,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            39,

                                                                                            Nhận một bộ sưu tập mới, kết quả từ bộ sưu tập mà không có một số yếu tố cụ thể.

                                                                                            Ví dụ

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            44

                                                                                            eles.intersection()                               

                                                                                            Với một bộ sưu tập:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            40,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            41,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            42,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            43,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            44,

                                                                                            Với một bộ chọn:

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            32,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            33,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            34,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            35,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            36,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            37,eles )

                                                                                            • Nhận một bộ sưu tập mới, kết quả từ bộ sưu tập mà không có một số yếu tố cụ thể.

                                                                                              The elements to intersect with.

                                                                                            eles.difference (, & nbsp; eles)selector )

                                                                                            • Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.

                                                                                              A selector representing the elements to intersect with. All elements in the graph matching the selector are used as the passed collection.

                                                                                            Ví dụ

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            45

                                                                                            eles.symmetricDifference()                               

                                                                                            Với một bộ sưu tập:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            45,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            46,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            47,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            48,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            49,

                                                                                            Với một bộ chọn:

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            32,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            33,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            34,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            35,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            36,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            37,eles )

                                                                                            • Nhận một bộ sưu tập mới, kết quả từ bộ sưu tập mà không có một số yếu tố cụ thể.

                                                                                              The elements to apply the symmetric difference with.

                                                                                            eles.difference (, & nbsp; eles)selector )

                                                                                            • Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.

                                                                                              A selector representing the elements to apply the symmetric difference with. All elements in the graph matching the selector are used as the passed collection.

                                                                                            Ví dụ

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            46

                                                                                            eles.diff()           

                                                                                            Với một bộ sưu tập:

                                                                                            Với một bộ chọn:eles )

                                                                                            • Bí danh:
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              32,
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              33,
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              34,
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              35,
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              36,
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              37,

                                                                                              The elements on the right side of the diff.

                                                                                            Nhận một bộ sưu tập mới, kết quả từ bộ sưu tập mà không có một số yếu tố cụ thể.selector )

                                                                                            • eles.difference (, & nbsp; eles)

                                                                                              A selector representing the elements on the right side of the diff. All elements in the graph matching the selector are used as the passed collection.

                                                                                            Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.

                                                                                            eles.difference (, & nbsp; selector)

                                                                                            • Selectorelements từ bộ sưu tập gọi phù hợp với bộ chọn này sẽ không nằm trong bộ sưu tập kết quả.
                                                                                            • Bí danh:
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              38,
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              39,
                                                                                            • Nhận tất cả các yếu tố trong biểu đồ không có trong bộ sưu tập gọi.

                                                                                            Ví dụ

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            47

                                                                                            eles.merge()           

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            40,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            41,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            42,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            43,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            44,

                                                                                            Nhận các yếu tố trong cả bộ sưu tập này và một bộ sưu tập được chỉ định khác.eles )

                                                                                            • eles.interection (, & nbsp; eles)

                                                                                              The elements to merge in-place.

                                                                                            Elesthe yếu tố để giao nhau với.selector )

                                                                                            • eles.interection (, & nbsp; selector)

                                                                                              A selector representing the elements to merge. All elements in the graph matching the selector are used as the passed collection.

                                                                                            Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.

                                                                                            eles.difference (, & nbsp; selector)

                                                                                            Selectorelements từ bộ sưu tập gọi phù hợp với bộ chọn này sẽ không nằm trong bộ sưu tập kết quả.

                                                                                            Ví dụ

                                                                                            Với một bộ sưu tập:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            48

                                                                                            Với một bộ chọn:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            49

                                                                                            eles.unmerge()           

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            32,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            33,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            34,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            35,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            36,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            37,

                                                                                            Nhận một bộ sưu tập mới, kết quả từ bộ sưu tập mà không có một số yếu tố cụ thể.eles )

                                                                                            • eles.difference (, & nbsp; eles)

                                                                                              The elements to remove in-place.

                                                                                            Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.selector )

                                                                                            • eles.difference (, & nbsp; selector)

                                                                                              A selector representing the elements to remove. All elements in the graph matching the selector are used as the passed collection.

                                                                                            Các yếu tố Elesthe sẽ không có trong bộ sưu tập kết quả.

                                                                                            eles.difference (, & nbsp; selector)

                                                                                            Selectorelements từ bộ sưu tập gọi phù hợp với bộ chọn này sẽ không nằm trong bộ sưu tập kết quả.

                                                                                            Ví dụ

                                                                                            Với một bộ sưu tập:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            50

                                                                                            Với một bộ chọn:

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            51

                                                                                            Bí danh:

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            38,
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            39, et al          

                                                                                            Nhận tất cả các yếu tố trong biểu đồ không có trong bộ sưu tập gọi.

                                                                                            eles.filter (, & nbsp; function (ele, i, eles) [, & nbsp; thisarg]))function(ele, i, eles) [thisArg] )

                                                                                            • hàm (ele, i, eles) hàm bộ lọc trả về các giá trị sự thật cho các phần tử bao gồm và các giá trị sai cho các yếu tố để loại trừ.

                                                                                              The filter function that returns truthy values for elements to include and falsey values for elements to exclude.

                                                                                              • Elethe yếu tố hiện tại.

                                                                                                The current element.

                                                                                              • Chỉ số Ithe của phần tử hiện tại.

                                                                                                The index of the current element.

                                                                                              • Elesthe Bộ sưu tập các yếu tố được lọc.

                                                                                                The collection of elements being filtered.

                                                                                            • ThisArg [Tùy chọn] Giá trị cho
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 trong hàm lặp.
                                                                                              [optional]

                                                                                              The value for

                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 within the iterating function.

                                                                                            eles.filter (, & nbsp; selector)selector )

                                                                                            Nhận các yếu tố phù hợp với bộ chọn được chỉ định.

                                                                                            • bộ chọn Selector để phù hợp với.

                                                                                              The selector to match against.

                                                                                            eles.nodes (, & nbsp; selector)selector )

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            • bộ chọn Selector để phù hợp với.

                                                                                              The selector to match against.

                                                                                            eles.nodes (, & nbsp; selector)selector )

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            • bộ chọn Selector để phù hợp với.

                                                                                              The selector to match against.

                                                                                            eles.nodes (, & nbsp; selector)

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            52

                                                                                            eles.edges (, & nbsp; selector)

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            53

                                                                                            eles.sort()       

                                                                                            Nhận các cạnh phù hợp với bộ chọn được chỉ định.

                                                                                            Ví dụfunction(ele1, ele2) )

                                                                                            • Với một bộ chọn:

                                                                                              The sorting comparison function that returns a negative number for

                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              60 before
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              61, 0 for
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              60 same as
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              61, or a positive number for
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              60 after
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              61.

                                                                                            eles.nodes (, & nbsp; selector)

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            54

                                                                                            eles.map()       

                                                                                            eles.edges (, & nbsp; selector)

                                                                                            Nhận các cạnh phù hợp với bộ chọn được chỉ định.function(ele, i, eles) [thisArg] )

                                                                                            • Ví dụ

                                                                                              The function that returns the mapped value for each element.

                                                                                              • Elethe yếu tố hiện tại.

                                                                                                The current element.

                                                                                              • Chỉ số Ithe của phần tử hiện tại.

                                                                                                The index of the current element.

                                                                                              • Elesthe Bộ sưu tập các yếu tố được lọc.

                                                                                                The collection of elements being mapped.

                                                                                            • ThisArg [Tùy chọn] Giá trị cho
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 trong hàm lặp.
                                                                                              [optional]

                                                                                              The value for

                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 within the iterating function.

                                                                                            eles.nodes (, & nbsp; selector)

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            55

                                                                                            eles.reduce()       

                                                                                            eles.edges (, & nbsp; selector)

                                                                                            Nhận các cạnh phù hợp với bộ chọn được chỉ định.function(prevVal, ele, i, eles) )

                                                                                            • Ví dụ

                                                                                              The function that returns the accumulated value given the previous value and the current element.

                                                                                              • Với một bộ chọn:

                                                                                                The value accumulated from previous elements.

                                                                                              • Elethe yếu tố hiện tại.

                                                                                                The current element.

                                                                                              • Chỉ số Ithe của phần tử hiện tại.

                                                                                                The index of the current element.

                                                                                              • Với một chức năng:

                                                                                                The collection of elements being reduced.

                                                                                            eles.nodes (, & nbsp; selector)

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            56

                                                                                            eles.min()       

                                                                                            eles.edges (, & nbsp; selector)

                                                                                            Nhận các cạnh phù hợp với bộ chọn được chỉ định.function(ele, i, eles) [thisArg] )

                                                                                            • Ví dụ

                                                                                              The function that returns the value to compare for each element.

                                                                                              • Elethe yếu tố hiện tại.

                                                                                                The current element.

                                                                                              • Chỉ số Ithe của phần tử hiện tại.

                                                                                                The index of the current element.

                                                                                              • Với một bộ chọn:

                                                                                                The collection of elements being searched.

                                                                                            • ThisArg [Tùy chọn] Giá trị cho
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 trong hàm lặp.
                                                                                              [optional]

                                                                                              The value for

                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 within the iterating function.

                                                                                            eles.filter (, & nbsp; selector)

                                                                                            Nhận các yếu tố phù hợp với bộ chọn được chỉ định.

                                                                                            • bộ chọn Selector để phù hợp với.
                                                                                            • eles.nodes (, & nbsp; selector)

                                                                                            eles.nodes (, & nbsp; selector)

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            57

                                                                                            eles.max()       

                                                                                            eles.edges (, & nbsp; selector)

                                                                                            Nhận các cạnh phù hợp với bộ chọn được chỉ định.function(ele, i, eles) [thisArg] )

                                                                                            • Ví dụ

                                                                                              The function that returns the value to compare for each element.

                                                                                              • Elethe yếu tố hiện tại.

                                                                                                The current element.

                                                                                              • Chỉ số Ithe của phần tử hiện tại.

                                                                                                The index of the current element.

                                                                                              • Với một bộ chọn:

                                                                                                The collection of elements being searched.

                                                                                            • ThisArg [Tùy chọn] Giá trị cho
                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 trong hàm lặp.
                                                                                              [optional]

                                                                                              The value for

                                                                                              #cy {
                                                                                                width: 300px;
                                                                                                height: 300px;
                                                                                                display: block;
                                                                                              }
                                                                                              
                                                                                              15 within the iterating function.

                                                                                            eles.filter (, & nbsp; selector)

                                                                                            Nhận các yếu tố phù hợp với bộ chọn được chỉ định.

                                                                                            • bộ chọn Selector để phù hợp với.
                                                                                            • eles.nodes (, & nbsp; selector)

                                                                                            eles.nodes (, & nbsp; selector)

                                                                                            Nhận các nút phù hợp với bộ chọn được chỉ định.

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            58

                                                                                            eles.edges (, & nbsp; selector)

                                                                                            Nhận các cạnh phù hợp với bộ chọn được chỉ định. et al        

                                                                                            Ví dụ

                                                                                            Với một bộ chọn: [selector] )

                                                                                            Với một chức năng: eles.neighbourhood(),

                                                                                            Nhận một bộ sưu tập mới chứa các yếu tố được sắp xếp theo hàm so sánh được chỉ định.

                                                                                            • eles.sort (, & nbsp; function (ele1, ele2))) [optional]

                                                                                              An optional selector that is used to filter the resultant collection.

                                                                                            Hàm (ELE1, ELE2) Hàm so sánh sắp xếp trả về số âm cho

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            60 trước
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            61, 0 cho
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            60 giống như
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            61 hoặc số dương cho
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            60 sau
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            61. [selector] )

                                                                                            Nhận bộ sưu tập các nút theo thứ tự tăng trọng lượng: eles.openNeighbourhood(),

                                                                                            Nhận một bộ sưu tập mới chứa các yếu tố được sắp xếp theo hàm so sánh được chỉ định.

                                                                                            • eles.sort (, & nbsp; function (ele1, ele2))) [optional]

                                                                                              An optional selector that is used to filter the resultant collection.

                                                                                            Hàm (ELE1, ELE2) Hàm so sánh sắp xếp trả về số âm cho

                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            60 trước
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            61, 0 cho
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            60 giống như
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            61 hoặc số dương cho
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            60 sau
                                                                                            #cy {
                                                                                              width: 300px;
                                                                                              height: 300px;
                                                                                              display: block;
                                                                                            }
                                                                                            
                                                                                            61. [selector] )

                                                                                            Nhận bộ sưu tập các nút theo thứ tự tăng trọng lượng: eles.closedNeighbourhood(),

                                                                                            Nhận một mảng chứa các giá trị được ánh xạ từ bộ sưu tập.

                                                                                            • eles.sort (, & nbsp; function (ele1, ele2))) [optional]

                                                                                              An optional selector that is used to filter the resultant collection.

                                                                                            eles.filter (, & nbsp; selector)

                                                                                            Nhận các yếu tố phù hợp với bộ chọn được chỉ định.

                                                                                            bộ chọn Selector để phù hợp với.open neighbourhood is one that does not include the original set of elements. If unspecified, a neighbourhood is open by default.

                                                                                            Một khu phố kín là một khu vực bao gồm bộ các yếu tố ban đầu.closed neighbourhood is one that does include the original set of elements.

                                                                                            Ví dụ

                                                                                            .side-line {
                                                                                                display: inline-block;
                                                                                                border-top: 1px solid black;
                                                                                                width: 20%;
                                                                                            }
                                                                                            
                                                                                            .triangle {
                                                                                                display: inline-block;
                                                                                                height: 7px;
                                                                                                width: 7px;
                                                                                                transform: rotate(45deg);
                                                                                                transform-origin: center center;
                                                                                                border-top: 1px solid black;
                                                                                                border-left: 1px solid black;
                                                                                                margin: 0 -3px -3px;
                                                                                            }
                                                                                            
                                                                                            59

                                                                                            eles.components () et al & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; et al        

                                                                                            Nhận các thành phần được kết nối.

                                                                                            eles.components()

                                                                                            Nhận các thành phần được kết nối, chỉ xem xét các yếu tố trong bộ sưu tập gọi. Một mảng các bộ sưu tập được trả về, với mỗi bộ sưu tập đại diện cho một thành phần.

                                                                                              eles.componentsof (, & nbsp; root)root )

                                                                                              Nhận các thành phần được kết nối mà các yếu tố được truyền thuộc về. Các thành phần chỉ xem xét các sơ đồ con được thực hiện bởi các yếu tố trong bộ sưu tập gọi. Một mảng các bộ sưu tập được trả về, với mỗi bộ sưu tập đại diện cho một thành phần.

                                                                                              • Các thành phần gốc chứa các yếu tố này được trả về.

                                                                                                The components that contain these elements are returned.

                                                                                              ele.component()

                                                                                              Nhận thành phần được kết nối cho phần tử gọi. Thành phần xem xét tất cả các yếu tố trong biểu đồ.

                                                                                                nodes.edgesWith()           

                                                                                                Nhận các cạnh kết nối bộ sưu tập với một bộ sưu tập khác. Hướng của các cạnh không quan trọng.

                                                                                                các nút.edgeswith (, & nbsp; eles)eles )

                                                                                                • Elesthe Bộ sưu tập khác.

                                                                                                  The other collection.

                                                                                                các nút.edgeswith (, & nbsp; selector)selector )

                                                                                                • bộ chọn Bộ sưu tập khác, được chỉ định là một bộ chọn được khớp với tất cả các phần tử trong biểu đồ.

                                                                                                  The other collection, specified as a selector which is matched against all elements in the graph.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                60

                                                                                                nodes.edgesTo()           

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles)eles )

                                                                                                • Elesthe Bộ sưu tập khác.

                                                                                                  The other collection.

                                                                                                các nút.edgeswith (, & nbsp; selector)selector )

                                                                                                • bộ chọn Bộ sưu tập khác, được chỉ định là một bộ chọn được khớp với tất cả các phần tử trong biểu đồ.

                                                                                                  The other collection, specified as a selector which is matched against all elements in the graph.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                61

                                                                                                edges.connectedNodes()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                62

                                                                                                nodes.connectedEdges()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                63

                                                                                                edge.source()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                64

                                                                                                edges.sources()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                65

                                                                                                edge.target()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                66

                                                                                                edges.targets()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                67

                                                                                                edges.parallelEdges()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Nhận các nút được kết nối với các cạnh trong bộ sưu tập.

                                                                                                edges.connectedNodes ([, & nbsp; selector]))

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                68

                                                                                                edges.codirectedEdges()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Nhận các nút được kết nối với các cạnh trong bộ sưu tập.

                                                                                                edges.connectedNodes ([, & nbsp; selector]))

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                69

                                                                                                nodes.roots()       

                                                                                                Nhận các cạnh đến từ bộ sưu tập (tức là nguồn) đi sang một bộ sưu tập khác (tức là mục tiêu).

                                                                                                các nút.edgesto (, & nbsp; eles) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                nodes.leaves()       

                                                                                                Nhận các nút được kết nối với các cạnh trong bộ sưu tập.

                                                                                                edges.connectedNodes ([, & nbsp; selector])) [selector] )

                                                                                                • các nút.edgesto (, & nbsp; selector) [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                nodes.outgoers()       

                                                                                                Nhận các nút được kết nối với các cạnh trong bộ sưu tập.

                                                                                                edges.connectedNodes ([, & nbsp; selector])) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn tùy chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                Nhận ra những người chơi của

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                24:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                70

                                                                                                nodes.successors()       

                                                                                                Những người đi lại (và các mục tiêu của họ) ra khỏi các nút trong bộ sưu tập (tức là những người ngoài cuộc, những người ngoài hành tinh, người ngoài cuộc, Hồi).

                                                                                                các nút.successors ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn tùy chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                Nhận ra những người chơi của

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                24:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                71

                                                                                                nodes.incomers()       

                                                                                                Những người đi lại (và các mục tiêu của họ) ra khỏi các nút trong bộ sưu tập (tức là những người ngoài cuộc, những người ngoài hành tinh, người ngoài cuộc, Hồi).

                                                                                                các nút.successors ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn tùy chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                Nhận ra những người chơi của

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                24:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                72

                                                                                                nodes.predecessors()       

                                                                                                Những người đi lại (và các mục tiêu của họ) ra khỏi các nút trong bộ sưu tập (tức là những người ngoài cuộc, những người ngoài hành tinh, người ngoài cuộc, Hồi).

                                                                                                các nút.successors ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn tùy chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  An optional selector that is used to filter the resultant collection.

                                                                                                Ví dụ

                                                                                                Nhận ra những người chơi của

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                24:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                73

                                                                                                Những người đi lại (và các mục tiêu của họ) ra khỏi các nút trong bộ sưu tập (tức là những người ngoài cuộc, những người ngoài hành tinh, người ngoài cuộc, Hồi).

                                                                                                eles.breadthFirstSearch()           

                                                                                                các nút.successors ([, & nbsp; selector])

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                96,

                                                                                                Nhận người kế vị của

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                24:options )

                                                                                                • Nhận các cạnh (và nguồn của chúng) đi vào các nút trong bộ sưu tập.
                                                                                                  • các nút.Comers ([, & nbsp; selector])

                                                                                                    The root nodes (selector or collection) to start the search from.

                                                                                                  • Nhận incomer của
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    24:
                                                                                                    [optional]

                                                                                                    A handler function that is called when a node is visited in the search. The handler returns

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06 when it finds the desired node, and it returns
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52 to cancel the search.

                                                                                                    • Kỷ nguyên có được các cạnh (và các nguồn của chúng) đi vào các nút trong bộ sưu tập (nghĩa là các incomers, Incomers, Incomers, Hồi).

                                                                                                      The current node.

                                                                                                    • các nút.

                                                                                                      The edge connecting the previous node to the current node.

                                                                                                    • Nhận tiền thân của
                                                                                                      var a = cy.$('#a'); // assume a compound node
                                                                                                      
                                                                                                      // the neighbourhood of `a` contains directly connected elements
                                                                                                      var directlyConnected = a.neighborhood();
                                                                                                      
                                                                                                      // you may want everything connected to its descendants instead
                                                                                                      // because the descendants "belong" to `a`
                                                                                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                      
                                                                                                      24:

                                                                                                      The previous node.

                                                                                                    • Tìm kiếm

                                                                                                      The index indicating this node is the ith visited node.

                                                                                                    • Bí danh:
                                                                                                      cytoscape({
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: {
                                                                                                          nodes: [
                                                                                                            {
                                                                                                              data: { id: 'a' }
                                                                                                            },
                                                                                                      
                                                                                                            {
                                                                                                              data: { id: 'b' }
                                                                                                            }
                                                                                                          ],
                                                                                                          edges: [
                                                                                                            {
                                                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                            }
                                                                                                          ]
                                                                                                        },
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'grid',
                                                                                                          rows: 1
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      });
                                                                                                      
                                                                                                      96,

                                                                                                      How many edge hops away this node is from the root nodes.

                                                                                                  • eles.breadthfirstsearch (, & nbsp; tùy chọn) [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                tùy chọn

                                                                                                rootthe các nút root (bộ chọn hoặc bộ sưu tập) để bắt đầu tìm kiếm từ.

                                                                                                Truy cập: Hàm (V, E, U, I, Độ sâu) [Tùy chọn] Hàm xử lý được gọi khi một nút được truy cập trong tìm kiếm. Trình xử lý trả về

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                06 khi tìm thấy nút mong muốn và nó trả về
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                52 để hủy tìm kiếm.

                                                                                                • Vthe Nút hiện tại.
                                                                                                • Ethe Edge kết nối nút trước đó với nút hiện tại.
                                                                                                • Uthe Node trước.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                74

                                                                                                eles.depthFirstSearch()           

                                                                                                Nhận ra những người chơi của

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                24:
                                                                                                #cy {
                                                                                                  width: 300px;
                                                                                                  height: 300px;
                                                                                                  display: block;
                                                                                                }
                                                                                                
                                                                                                86,

                                                                                                Những người đi lại (và các mục tiêu của họ) ra khỏi các nút trong bộ sưu tập (tức là những người ngoài cuộc, những người ngoài hành tinh, người ngoài cuộc, Hồi).options )

                                                                                                • Nhận các cạnh (và nguồn của chúng) đi vào các nút trong bộ sưu tập.
                                                                                                  • các nút.Comers ([, & nbsp; selector])

                                                                                                    The root nodes (selector or collection) to start the search from.

                                                                                                  • Nhận incomer của
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    24:
                                                                                                    [optional]

                                                                                                    A handler function that is called when a node is visited in the search. The handler returns

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06 when it finds the desired node, and it returns
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52 to cancel the search.

                                                                                                    • Kỷ nguyên có được các cạnh (và các nguồn của chúng) đi vào các nút trong bộ sưu tập (nghĩa là các incomers, Incomers, Incomers, Hồi).

                                                                                                      The current node.

                                                                                                    • các nút.

                                                                                                      The edge connecting the previous node to the current node.

                                                                                                    • Nhận tiền thân của
                                                                                                      var a = cy.$('#a'); // assume a compound node
                                                                                                      
                                                                                                      // the neighbourhood of `a` contains directly connected elements
                                                                                                      var directlyConnected = a.neighborhood();
                                                                                                      
                                                                                                      // you may want everything connected to its descendants instead
                                                                                                      // because the descendants "belong" to `a`
                                                                                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                      
                                                                                                      24:

                                                                                                      The previous node.

                                                                                                    • Tìm kiếm

                                                                                                      The index indicating this node is the ith visited node.

                                                                                                    • Bí danh:
                                                                                                      cytoscape({
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: {
                                                                                                          nodes: [
                                                                                                            {
                                                                                                              data: { id: 'a' }
                                                                                                            },
                                                                                                      
                                                                                                            {
                                                                                                              data: { id: 'b' }
                                                                                                            }
                                                                                                          ],
                                                                                                          edges: [
                                                                                                            {
                                                                                                              data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                            }
                                                                                                          ]
                                                                                                        },
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'grid',
                                                                                                          rows: 1
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      });
                                                                                                      
                                                                                                      96,

                                                                                                      How many edge hops away this node is from the root nodes.

                                                                                                  • eles.breadthfirstsearch (, & nbsp; tùy chọn) [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                tùy chọn

                                                                                                rootthe các nút root (bộ chọn hoặc bộ sưu tập) để bắt đầu tìm kiếm từ.

                                                                                                Truy cập: Hàm (V, E, U, I, Độ sâu) [Tùy chọn] Hàm xử lý được gọi khi một nút được truy cập trong tìm kiếm. Trình xử lý trả về

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                06 khi tìm thấy nút mong muốn và nó trả về
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                52 để hủy tìm kiếm.

                                                                                                • Vthe Nút hiện tại.
                                                                                                • Ethe Edge kết nối nút trước đó với nút hiện tại.
                                                                                                • Uthe Node trước.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                75

                                                                                                eles.dijkstra()       

                                                                                                Chỉ số Ithe chỉ ra nút này là nút đã truy cập.

                                                                                                Độ sâu nhiều cạnh nhảy xa nút này là từ các nút gốc.options )

                                                                                                • Nhận các cạnh (và nguồn của chúng) đi vào các nút trong bộ sưu tập.
                                                                                                  • các nút.Comers ([, & nbsp; selector])

                                                                                                    The root node (selector or collection) where the algorithm starts.

                                                                                                  • Nhận incomer của
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    24:
                                                                                                    [optional]

                                                                                                    A function that returns the positive numeric weight for the edge. The weight indicates the cost of going from one node to another node.

                                                                                                  • eles.breadthfirstsearch (, & nbsp; tùy chọn) [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                tùy chọn

                                                                                                rootthe các nút root (bộ chọn hoặc bộ sưu tập) để bắt đầu tìm kiếm từ.

                                                                                                Truy cập: Hàm (V, E, U, I, Độ sâu) [Tùy chọn] Hàm xử lý được gọi khi một nút được truy cập trong tìm kiếm. Trình xử lý trả về

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                06 khi tìm thấy nút mong muốn và nó trả về
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                52 để hủy tìm kiếm.

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                76

                                                                                                Vthe Nút hiện tại.

                                                                                                Nếu không có chức năng trọng lượng được xác định, trọng lượng không đổi 1 được sử dụng cho mỗi cạnh.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                77

                                                                                                eles.aStar()       

                                                                                                Thực hiện thuật toán tìm kiếm A* trên các phần tử trong bộ sưu tập. Điều này tìm thấy đường dẫn ngắn nhất từ ​​nút gốc đến nút mục tiêu.

                                                                                                eles.astar (, & nbsp; tùy chọn)options )

                                                                                                • tùy chọn
                                                                                                  • Rootthe Nút (bộ chọn hoặc bộ sưu tập) trong đó tìm kiếm bắt đầu.

                                                                                                    The root node (selector or collection) where the search starts.

                                                                                                  • Mục tiêu Nút mục tiêu (bộ chọn hoặc bộ sưu tập) trong đó tìm kiếm kết thúc.

                                                                                                    The goal node (selector or collection) where the search ends.

                                                                                                  • Trọng lượng: Hàm (cạnh) [Tùy chọn] Một hàm trả về trọng lượng số dương cho cạnh. Trọng lượng cho thấy chi phí đi từ nút này sang nút khác. [optional]

                                                                                                    A function that returns the positive numeric weight for the edge. The weight indicates the cost of going from one node to another node.

                                                                                                  • Heuristic: Hàm (nút) [Tùy chọn] Một hàm trả về ước tính (không thể đánh giá quá cao) trên khoảng cách ngắn nhất từ ​​nút hiện tại đến mục tiêu. [optional]

                                                                                                    A function that returns an estimation (cannot be overestimation) on the shortest distance from the current node to the goal.

                                                                                                  • chỉ đạo [Tùy chọn] một boolean cho biết liệu thuật toán chỉ nên đi dọc theo các cạnh từ nguồn sang mục tiêu (mặc định
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng hàm này thực hiện tìm kiếm* chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                78

                                                                                                Liên quan đến các tùy chọn tùy chọn:

                                                                                                • Nếu không có chức năng trọng lượng được xác định, trọng lượng không đổi 1 được sử dụng cho mỗi cạnh.
                                                                                                • Nếu không có chức năng heuristic được cung cấp, một hàm null không đổi sẽ được sử dụng, biến điều này thành hành vi tương tự như thuật toán Dijkstra. Các heuristic nên là đơn điệu (còn được gọi là nhất quán) ngoài việc được chấp nhận.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                79

                                                                                                eles.floydWarshall()       

                                                                                                Thực hiện thuật toán tìm kiếm A* trên các phần tử trong bộ sưu tập. Điều này tìm thấy đường dẫn ngắn nhất từ ​​nút gốc đến nút mục tiêu.

                                                                                                eles.astar (, & nbsp; tùy chọn)options )

                                                                                                • tùy chọn
                                                                                                  • Rootthe Nút (bộ chọn hoặc bộ sưu tập) trong đó tìm kiếm bắt đầu. [optional]

                                                                                                    A function that returns the numeric weight for the edge. The weight indicates the cost of going from one node to another node. The weight may be positive or negative, but no negative cycles are allowed.

                                                                                                  • chỉ đạo [Tùy chọn] một boolean cho biết liệu thuật toán chỉ nên đi dọc theo các cạnh từ nguồn sang mục tiêu (mặc định
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                80

                                                                                                Nếu không có chức năng trọng lượng được xác định, trọng lượng không đổi 1 được sử dụng cho mỗi cạnh.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                81

                                                                                                eles.bellmanFord()       

                                                                                                Thực hiện thuật toán tìm kiếm A* trên các phần tử trong bộ sưu tập. Điều này tìm thấy đường dẫn ngắn nhất từ ​​nút gốc đến nút mục tiêu.

                                                                                                eles.astar (, & nbsp; tùy chọn)options )

                                                                                                • tùy chọn
                                                                                                  • Rootthe Nút (bộ chọn hoặc bộ sưu tập) trong đó tìm kiếm bắt đầu.

                                                                                                    The root node (selector or collection) where the search starts.

                                                                                                  • Mục tiêu Nút mục tiêu (bộ chọn hoặc bộ sưu tập) trong đó tìm kiếm kết thúc. [optional]

                                                                                                    A function that returns the numeric weight for the edge. The weight indicates the cost of going from one node to another node. The weight may be positive or negative.

                                                                                                  • chỉ đạo [Tùy chọn] một boolean cho biết liệu thuật toán chỉ nên đi dọc theo các cạnh từ nguồn sang mục tiêu (mặc định
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                82

                                                                                                Nếu không có chức năng trọng lượng được xác định, trọng lượng không đổi 1 được sử dụng cho mỗi cạnh.

                                                                                                Liên quan đến các tùy chọn tùy chọn:

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                83

                                                                                                eles.hierholzer()       

                                                                                                Thực hiện thuật toán tìm kiếm A* trên các phần tử trong bộ sưu tập. Điều này tìm thấy đường dẫn ngắn nhất từ ​​nút gốc đến nút mục tiêu.

                                                                                                eles.astar (, & nbsp; tùy chọn)options )

                                                                                                • tùy chọn
                                                                                                  • Rootthe Nút (bộ chọn hoặc bộ sưu tập) trong đó tìm kiếm bắt đầu. [optional]

                                                                                                    The root node (selector or collection) where the search starts.

                                                                                                  • chỉ đạo [Tùy chọn] một boolean cho biết liệu thuật toán chỉ nên đi dọc theo các cạnh từ nguồn sang mục tiêu (mặc định
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm should only go along edges from source to target (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52).

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng hàm này thực hiện tìm kiếm* chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                84

                                                                                                Liên quan đến các tùy chọn tùy chọn:

                                                                                                • Nếu không có chức năng heuristic được cung cấp, một hàm null không đổi sẽ được sử dụng, biến điều này thành hành vi tương tự như thuật toán Dijkstra. Các heuristic nên là đơn điệu (còn được gọi là nhất quán) ngoài việc được chấp nhận.
                                                                                                • Thực hiện thuật toán tìm kiếm Floyd-Warshall trên các yếu tố trong bộ sưu tập. Điều này tìm thấy đường dẫn ngắn nhất giữa tất cả các cặp nút.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                85

                                                                                                eles.floydwarshall (, & nbsp; tùy chọn)

                                                                                                eles.kruskal()       

                                                                                                Trọng lượng: Hàm (cạnh) [Tùy chọn] Một hàm trả về trọng lượng số cho cạnh. Trọng lượng cho thấy chi phí đi từ nút này sang nút khác. Trọng lượng có thể là dương hoặc âm, nhưng không cho phép chu kỳ âm.

                                                                                                Thực hiện thuật toán tìm kiếm Bellman-Ford trên các yếu tố trong bộ sưu tập. Điều này tìm thấy đường dẫn ngắn nhất từ ​​nút bắt đầu đến tất cả các nút khác trong bộ sưu tập. [function(edge)] )

                                                                                                • eles.bellmanford (, & nbsp; tùy chọn) [optional]

                                                                                                  A function that returns the positive numeric weight for the edge.

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng hàm này thực hiện tìm kiếm* chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                86

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                eles.kargerStein()   

                                                                                                Liên quan đến các tùy chọn tùy chọn:

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                87

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                88

                                                                                                eles.hopcroftTarjanBiconnected()               

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                07,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                08,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                09,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                07,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                08,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                09,

                                                                                                Tìm các thành phần được kết nối trong một biểu đồ không mong muốn, cũng như các đỉnh cắt tương ứng của chúng, sử dụng thuật toán do Hopcroft và Tarjan.

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng hàm này xác định các thành phần được kết nối và chỉ cắt các đỉnh trong tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                89

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                90

                                                                                                eles.tarjanStronglyConnected()               

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                07,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                08,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                09,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                10,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                11,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                12,

                                                                                                Thông tin chi tiết

                                                                                                Tìm các thành phần được kết nối trong một biểu đồ không mong muốn, cũng như các đỉnh cắt tương ứng của chúng, sử dụng thuật toán do Hopcroft và Tarjan.

                                                                                                Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                91

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                92

                                                                                                Bí danh: npm install cytoscape 07, npm install cytoscape 08, npm install cytoscape 09,

                                                                                                eles.degreeCentrality()           

                                                                                                Tìm các thành phần được kết nối trong một biểu đồ không mong muốn, cũng như các đỉnh cắt tương ứng của chúng, sử dụng thuật toán do Hopcroft và Tarjan.

                                                                                                npm install cytoscape
                                                                                                
                                                                                                13,

                                                                                                Lưu ý rằng hàm này xác định các thành phần được kết nối và chỉ cắt các đỉnh trong tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                10,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                11,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                12,options )

                                                                                                • Lưu ý rằng hàm này xác định các thành phần được kết nối mạnh chỉ trong tập hợp con của biểu đồ trong bộ sưu tập gọi.
                                                                                                  • Tính trung tâm

                                                                                                    The root node (selector or collection) for which the centrality calculation is made.

                                                                                                  • Bí danh:
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    13,
                                                                                                    [optional]

                                                                                                    A function that returns the positive weight for the edge. The weight indicates the importance of the edge, with a high value representing high importance.

                                                                                                  • Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán độ trung tâm của nút gốc được chỉ định. [optional]

                                                                                                    The alpha value for the centrality calculation, ranging on [0, 1]. With value 0 (default), disregards edge weights and solely uses number of edges in the centrality calculation. With value 1, disregards number of edges and solely uses the edge weights in the centrality calculation.

                                                                                                  • eles.degreecentrality (, & nbsp; tùy chọn) [optional]

                                                                                                    A boolean indicating whether the directed indegree and outdegree centrality is calculated (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) or whether the undirected centrality is calculated (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, default).

                                                                                                Thông tin chi tiết

                                                                                                tùy chọn

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                93

                                                                                                Nút gốc (bộ chọn hoặc bộ sưu tập) trong đó tính toán trung tâm được thực hiện.

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                94

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                95

                                                                                                eles.degreeCentralityNormalized()               

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                07,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                08,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                09,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                18,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                19,

                                                                                                Tìm các thành phần được kết nối trong một biểu đồ không mong muốn, cũng như các đỉnh cắt tương ứng của chúng, sử dụng thuật toán do Hopcroft và Tarjan.

                                                                                                Lưu ý rằng hàm này xác định các thành phần được kết nối và chỉ cắt các đỉnh trong tập hợp con của biểu đồ trong bộ sưu tập gọi.options )

                                                                                                • Lưu ý rằng hàm này xác định các thành phần được kết nối mạnh chỉ trong tập hợp con của biểu đồ trong bộ sưu tập gọi.
                                                                                                  • Bí danh:
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    13,
                                                                                                    [optional]

                                                                                                    A function that returns the positive weight for the edge. The weight indicates the importance of the edge, with a high value representing high importance.

                                                                                                  • Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán độ trung tâm của nút gốc được chỉ định. [optional]

                                                                                                    The alpha value for the centrality calculation, ranging on [0, 1]. With value 0 (default), disregards edge weights and solely uses number of edges in the centrality calculation. With value 1, disregards number of edges and solely uses the edge weights in the centrality calculation.

                                                                                                  • eles.degreecentrality (, & nbsp; tùy chọn) [optional]

                                                                                                    A boolean indicating whether the directed indegree and outdegree centrality is calculated (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) or whether the undirected centrality is calculated (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, default).

                                                                                                Thông tin chi tiết

                                                                                                tùy chọn

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                96

                                                                                                Nút gốc (bộ chọn hoặc bộ sưu tập) trong đó tính toán trung tâm được thực hiện.

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                97

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                98

                                                                                                eles.closenessCentrality()           

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                07,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                08,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                09,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                24,

                                                                                                Tìm các thành phần được kết nối trong một biểu đồ không mong muốn, cũng như các đỉnh cắt tương ứng của chúng, sử dụng thuật toán do Hopcroft và Tarjan.

                                                                                                Lưu ý rằng hàm này xác định các thành phần được kết nối và chỉ cắt các đỉnh trong tập hợp con của biểu đồ trong bộ sưu tập gọi.options )

                                                                                                • Lưu ý rằng hàm này xác định các thành phần được kết nối mạnh chỉ trong tập hợp con của biểu đồ trong bộ sưu tập gọi.
                                                                                                  • Tính trung tâm

                                                                                                    The root node (selector or collection) for which the centrality calculation is made.

                                                                                                  • Bí danh:
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    13,
                                                                                                    [optional]

                                                                                                    A function that returns the positive weight for the edge. The weight indicates the importance of the edge, with a high value representing high importance.

                                                                                                  • Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán độ trung tâm của nút gốc được chỉ định. [optional]

                                                                                                    A boolean indicating whether the algorithm operates on edges in a directed manner from source to target (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) or whether the algorithm operates in an undirected manner (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, default).

                                                                                                  • eles.degreecentrality (, & nbsp; tùy chọn) [optional]

                                                                                                    A boolean indicating whether the algorithm calculates the harmonic mean (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06, default) or the arithmetic mean (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52) of distances. The harmonic mean is very useful for graphs that are not strongly connected.

                                                                                                Thông tin chi tiết

                                                                                                tùy chọn

                                                                                                Ví dụ

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                99

                                                                                                eles.closenessCentralityNormalized()               

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                07,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                08,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                09,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                29,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                30,

                                                                                                Tìm các thành phần được kết nối trong một biểu đồ không mong muốn, cũng như các đỉnh cắt tương ứng của chúng, sử dụng thuật toán do Hopcroft và Tarjan.

                                                                                                eles.options )

                                                                                                • tùy chọn
                                                                                                  • Trọng lượng: Hàm (cạnh) [Tùy chọn] Một hàm trả về trọng lượng dương cho cạnh. Trọng lượng cho thấy tầm quan trọng của cạnh, với giá trị cao thể hiện tầm quan trọng cao. [optional]

                                                                                                    A function that returns the positive weight for the edge. The weight indicates the importance of the edge, with a high value representing high importance.

                                                                                                  • được chỉ đạo [tùy chọn] Boolean cho biết liệu thuật toán có hoạt động trên các cạnh theo cách được định hướng từ nguồn đến mục tiêu (
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) hay liệu thuật toán có hoạt động theo cách không mong muốn (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, mặc định).
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm operates on edges in a directed manner from source to target (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) or whether the algorithm operates in an undirected manner (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, default).

                                                                                                  • Hòa âm [Tùy chọn] Một boolean cho biết liệu thuật toán có tính toán giá trị trung bình hài hòa (
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06, mặc định) hay giá trị trung bình số học (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52) của khoảng cách. Giá trị trung bình hài hòa rất hữu ích cho các biểu đồ không được kết nối mạnh mẽ.
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm calculates the harmonic mean (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06, default) or the arithmetic mean (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52) of distances. The harmonic mean is very useful for graphs that are not strongly connected.

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                00

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                01

                                                                                                eles.betweennessCentrality()           

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                35,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                35,

                                                                                                Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán tính trung tâm giữa các nút.

                                                                                                eles.wetweennesscentrality (, & nbsp; tùy chọn)options )

                                                                                                • tùy chọn
                                                                                                  • Trọng lượng: Hàm (cạnh) [Tùy chọn] Một hàm trả về trọng lượng dương cho cạnh. Trọng lượng cho thấy tầm quan trọng của cạnh, với giá trị cao thể hiện tầm quan trọng cao. [optional]

                                                                                                    A function that returns the positive weight for the edge. The weight indicates the importance of the edge, with a high value representing high importance.

                                                                                                  • được chỉ đạo [tùy chọn] Boolean cho biết liệu thuật toán có hoạt động trên các cạnh theo cách được định hướng từ nguồn đến mục tiêu (
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) hay liệu thuật toán có hoạt động theo cách không mong muốn (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, mặc định).
                                                                                                    [optional]

                                                                                                    A boolean indicating whether the algorithm operates on edges in a directed manner from source to target (

                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    06) or whether the algorithm operates in an undirected manner (
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52, default).

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                02

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                03

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                35,

                                                                                                Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán tính trung tâm giữa các nút.options )

                                                                                                • tùy chọn
                                                                                                  • eles.wetweennesscentrality (, & nbsp; tùy chọn) [optional]

                                                                                                    The damping factor, affecting how long the algorithm goes along the topology of the graph (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    38).

                                                                                                  • Xếp hạng các nút trong bộ sưu tập bằng thuật toán xếp hạng trang. [optional]

                                                                                                    Numeric parameter that represents the required precision (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    39). The algorithm stops when the difference between iterations is this value or less.

                                                                                                  • eles.pagerank (, & nbsp; tùy chọn) [optional]

                                                                                                    Maximum number of iterations to perform (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    40).

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                04

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                05

                                                                                                Bí danh: npm install cytoscape 35,

                                                                                                eles.markovClustering()           

                                                                                                Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán tính trung tâm giữa các nút.

                                                                                                npm install cytoscape
                                                                                                
                                                                                                41,

                                                                                                eles.wetweennesscentrality (, & nbsp; tùy chọn)

                                                                                                Xếp hạng các nút trong bộ sưu tập bằng thuật toán xếp hạng trang.options )

                                                                                                • tùy chọn
                                                                                                  • eles.pagerank (, & nbsp; tùy chọn)

                                                                                                    An array of attribute functions, each of which returns a numeric attribute value for the specified edge. Attributes are used to cluster the nodes; i.e. the attributes of an edge indicate similarity between its nodes.

                                                                                                  • DAMPIONFACLOR [Tùy chọn] Hệ số giảm xóc, ảnh hưởng đến thời gian thuật toán đi dọc theo cấu trúc liên kết của đồ thị (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    38).
                                                                                                    [optional]

                                                                                                    A number that affects time of computation and cluster granularity to some extent:

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    42 (default
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    43)

                                                                                                  • Độ chính xác [tùy chọn] Tham số số đại diện cho độ chính xác cần thiết (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    39). Thuật toán dừng khi sự khác biệt giữa các lần lặp là giá trị này hoặc ít hơn.
                                                                                                    [optional]

                                                                                                    A number that affects cluster granularity (the greater the value, the more clusters):

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    44 (default
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    43)

                                                                                                  • Các lần lặp [Tùy chọn] Số lần lặp tối đa để thực hiện (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    40).
                                                                                                    [optional]

                                                                                                    Optional number of self loops for each node. Use a neutral value to improve cluster computations (default

                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    89).

                                                                                                  • Hàm này trả về một đối tượng của biểu mẫu sau: [optional]

                                                                                                    Maximum number of iterations of the MCL algorithm in a single run (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    47).

                                                                                                Thông tin chi tiết

                                                                                                Hàm này trả về một đối tượng của biểu mẫu:

                                                                                                Ví dụ

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                06

                                                                                                nodes.kMeans()       

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                35,

                                                                                                Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán tính trung tâm giữa các nút.options )

                                                                                                • tùy chọn
                                                                                                  • eles.wetweennesscentrality (, & nbsp; tùy chọn)

                                                                                                    An array of attribute functions, each of which returns a numeric attribute value for the specified node. Attributes are used to cluster the nodes; i.e. two nodes with similar attributes tend to be in the same cluster. Each attribute may have to be normalised in order for the chosen distance metric to make sense. Attributes must be specified unless a custom

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 is specified.

                                                                                                  • Xếp hạng các nút trong bộ sưu tập bằng thuật toán xếp hạng trang.

                                                                                                    The number of clusters to return.

                                                                                                  • eles.pagerank (, & nbsp; tùy chọn)

                                                                                                    The distance classifier used to compare attribute vectors. It is optional if attributes are specified. It may take on one of several values:

                                                                                                    • DAMPIONFACLOR [Tùy chọn] Hệ số giảm xóc, ảnh hưởng đến thời gian thuật toán đi dọc theo cấu trúc liên kết của đồ thị (mặc định
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      38).

                                                                                                      Euclidean distance (default)

                                                                                                    • Độ chính xác [tùy chọn] Tham số số đại diện cho độ chính xác cần thiết (mặc định
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      39). Thuật toán dừng khi sự khác biệt giữa các lần lặp là giá trị này hoặc ít hơn.

                                                                                                      Squared Euclidean distance

                                                                                                    • Các lần lặp [Tùy chọn] Số lần lặp tối đa để thực hiện (mặc định
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      40).

                                                                                                      Manhattan distance

                                                                                                    • Hàm này trả về một đối tượng của biểu mẫu sau:

                                                                                                      Max distance

                                                                                                    • Phân nhóm

                                                                                                      A custom function that returns the distance between attribute vectors

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      • Chiều dài của các vectơ.

                                                                                                        The length of the vectors.

                                                                                                      • getPat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 vector.

                                                                                                      • getqat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 vector.

                                                                                                  • Maxiterations [Tùy chọn] Số lần lặp tối đa của thuật toán để chạy (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    53).
                                                                                                    [optional]

                                                                                                    The maximum number of iterations of the algorithm to run (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    53).

                                                                                                  • Độ nhạy cảm ứng [Tùy chọn] Ngưỡng chênh lệch hệ số được sử dụng để xác định xem thuật toán có hội tụ hay không (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    54).
                                                                                                    [optional]

                                                                                                    The coefficients difference threshold used to determine whether the algorithm has converged (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    54).

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng chức năng này thực hiện phân cụm K-mean chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi. K-Means thường không xem xét cấu trúc liên kết của đồ thị.

                                                                                                Hàm này trả về một mảng, chứa các bộ sưu tập. Mỗi bộ sưu tập trong mảng là một cụm được tìm thấy bởi thuật toán.

                                                                                                Một trong những khác biệt chính giữa các thuật toán K-MEANS và K-MEDOIDS là cách mà các trung tâm cụm được khởi tạo. Trong K-MEANS, các trung tâm cụm (centroid) là các vectơ với các phần tử được khởi tạo thành các giá trị ngẫu nhiên trong mỗi phạm vi chiều. Trong K-medoids, các trung tâm cụm (medoids) là các nút ngẫu nhiên từ tập dữ liệu.

                                                                                                Một điều còn lại là thuật toán K-MEANS xác định các trung tâm cụm mới bằng cách lấy trung bình của tất cả các nút trong cụm đó, trong khi K-medoid chọn nút với chi phí cấu hình thấp nhất là trung tâm cụm mới.

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                07

                                                                                                nodes.kMedoids()       

                                                                                                Chỉ xem xét các nút trong bộ sưu tập gọi, tính toán các nút K-medoids của các nút.

                                                                                                các nút.kmedoids (, & nbsp; tùy chọn)options )

                                                                                                • tùy chọn
                                                                                                  • Các thuộc tính: [Hàm (nút) ...] Một mảng các hàm thuộc tính, mỗi hàm trả về giá trị thuộc tính số cho nút được chỉ định. Các thuộc tính được sử dụng để phân cụm các nút; tức là hai nút có thuộc tính tương tự có xu hướng nằm trong cùng một cụm. Mỗi thuộc tính có thể phải được chuẩn hóa để số liệu khoảng cách đã chọn để có ý nghĩa. Các thuộc tính phải được chỉ định trừ khi một tùy chỉnh
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 được chỉ định.

                                                                                                    An array of attribute functions, each of which returns a numeric attribute value for the specified node. Attributes are used to cluster the nodes; i.e. two nodes with similar attributes tend to be in the same cluster. Each attribute may have to be normalised in order for the chosen distance metric to make sense. Attributes must be specified unless a custom

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 is specified.

                                                                                                  • KThe số lượng cụm để trở lại.

                                                                                                    The number of clusters to return.

                                                                                                  • Phân loại khoảng cách Distancethe được sử dụng để so sánh các vectơ thuộc tính. Đó là tùy chọn nếu các thuộc tính được chỉ định. Nó có thể đảm nhận một trong một số giá trị:

                                                                                                    The distance classifier used to compare attribute vectors. It is optional if attributes are specified. It may take on one of several values:

                                                                                                    • 'Khoảng cách Euclide'euclide (mặc định)

                                                                                                      Euclidean distance (default)

                                                                                                    • 'Khoảng cách Euclide bình phương của bình phương

                                                                                                      Squared Euclidean distance

                                                                                                    • 'Manhattan'Manhattan khoảng cách

                                                                                                      Manhattan distance

                                                                                                    • 'Khoảng cách Max'Max

                                                                                                      Max distance

                                                                                                    • hàm (độ dài, getpat, getqat [, nodep, nodeq]) một hàm tùy chỉnh trả về khoảng cách giữa các vectơ thuộc tính
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 và
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      A custom function that returns the distance between attribute vectors

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      • Chiều dài của các vectơ.

                                                                                                        The length of the vectors.

                                                                                                      • getPat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 vector.

                                                                                                      • getqat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 vector.

                                                                                                      • Maxiterations [Tùy chọn] Số lần lặp tối đa của thuật toán để chạy (mặc định
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        53).
                                                                                                        [optional]

                                                                                                        An optionally-used reference to the node associated with the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 attribute vector. It is useful for affecting the weights with information outside of the attributes, such as connectivity.

                                                                                                      • Độ nhạy cảm ứng [Tùy chọn] Ngưỡng chênh lệch hệ số được sử dụng để xác định xem thuật toán có hội tụ hay không (mặc định
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        54).
                                                                                                        [optional]

                                                                                                        An optionally-used reference to the node associated with the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 attribute vector. It is useful for affecting the weights with information outside of the attributes, such as connectivity.

                                                                                                    • Thông tin chi tiết

                                                                                                      A custom function that returns the distance between

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      62 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      63. This allows for specifying the distance matrix directly, forgoing attributes.

                                                                                                  • Maxiterations [Tùy chọn] Số lần lặp tối đa của thuật toán để chạy (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    53).
                                                                                                    [optional]

                                                                                                    The maximum number of iterations of the algorithm to run (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    53).

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng chức năng này thực hiện phân cụm K-mean chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi. K-Means thường không xem xét cấu trúc liên kết của đồ thị.

                                                                                                Hàm này trả về một mảng, chứa các bộ sưu tập. Mỗi bộ sưu tập trong mảng là một cụm được tìm thấy bởi thuật toán.

                                                                                                Một trong những khác biệt chính giữa các thuật toán K-MEANS và K-MEDOIDS là cách mà các trung tâm cụm được khởi tạo. Trong K-MEANS, các trung tâm cụm (centroid) là các vectơ với các phần tử được khởi tạo thành các giá trị ngẫu nhiên trong mỗi phạm vi chiều. Trong K-medoids, các trung tâm cụm (medoids) là các nút ngẫu nhiên từ tập dữ liệu.

                                                                                                Một điều còn lại là thuật toán K-MEANS xác định các trung tâm cụm mới bằng cách lấy trung bình của tất cả các nút trong cụm đó, trong khi K-medoid chọn nút với chi phí cấu hình thấp nhất là trung tâm cụm mới.

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                08

                                                                                                nodes.fuzzyCMeans()           

                                                                                                Chỉ xem xét các nút trong bộ sưu tập gọi, tính toán các nút K-medoids của các nút.

                                                                                                npm install cytoscape
                                                                                                
                                                                                                65,

                                                                                                các nút.kmedoids (, & nbsp; tùy chọn)

                                                                                                tùy chọnoptions )

                                                                                                • tùy chọn
                                                                                                  • Các thuộc tính: [Hàm (nút) ...] Một mảng các hàm thuộc tính, mỗi hàm trả về giá trị thuộc tính số cho nút được chỉ định. Các thuộc tính được sử dụng để phân cụm các nút; tức là hai nút có thuộc tính tương tự có xu hướng nằm trong cùng một cụm. Mỗi thuộc tính có thể phải được chuẩn hóa để số liệu khoảng cách đã chọn để có ý nghĩa. Các thuộc tính phải được chỉ định trừ khi một tùy chỉnh
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 được chỉ định.

                                                                                                    An array of attribute functions, each of which returns a numeric attribute value for the specified node. Attributes are used to cluster the nodes; i.e. two nodes with similar attributes tend to be in the same cluster. Each attribute may have to be normalised in order for the chosen distance metric to make sense. Attributes must be specified unless a custom

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 is specified.

                                                                                                  • KThe số lượng cụm để trở lại.

                                                                                                    The number of clusters to return.

                                                                                                  • Phân loại khoảng cách Distancethe được sử dụng để so sánh các vectơ thuộc tính. Đó là tùy chọn nếu các thuộc tính được chỉ định. Nó có thể đảm nhận một trong một số giá trị:

                                                                                                    The distance classifier used to compare attribute vectors. It is optional if attributes are specified. It may take on one of several values:

                                                                                                    • 'Khoảng cách Euclide'euclide (mặc định)

                                                                                                      Euclidean distance (default)

                                                                                                    • 'Khoảng cách Euclide bình phương của bình phương

                                                                                                      Squared Euclidean distance

                                                                                                    • 'Manhattan'Manhattan khoảng cách

                                                                                                      Manhattan distance

                                                                                                    • 'Khoảng cách Max'Max

                                                                                                      Max distance

                                                                                                    • hàm (độ dài, getpat, getqat [, nodep, nodeq]) một hàm tùy chỉnh trả về khoảng cách giữa các vectơ thuộc tính
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 và
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      A custom function that returns the distance between attribute vectors

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      • Chiều dài của các vectơ.

                                                                                                        The length of the vectors.

                                                                                                      • getPat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 vector.

                                                                                                      • getqat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 vector.

                                                                                                  • Maxiterations [Tùy chọn] Số lần lặp tối đa của thuật toán để chạy (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    53).
                                                                                                    [optional]

                                                                                                    The maximum number of iterations of the algorithm to run (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    53).

                                                                                                  • Độ nhạy cảm ứng [Tùy chọn] Ngưỡng chênh lệch hệ số được sử dụng để xác định xem thuật toán có hội tụ hay không (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    54).
                                                                                                    [optional]

                                                                                                    The coefficient difference threshold used to determine whether the algorithm has converged (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    54).

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng chức năng này thực hiện tập hợp c-mean mờ chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Hàm này trả về một đối tượng của định dạng sau:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                09

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                10

                                                                                                nodes.hierarchicalClustering()           

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                73,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                73,

                                                                                                Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán phân cụm phân cấp kết tụ của các nút.

                                                                                                các nút.options )

                                                                                                • tùy chọn
                                                                                                  • Các thuộc tính: [Hàm (nút) ...] Một mảng các hàm thuộc tính, mỗi hàm trả về giá trị thuộc tính số cho nút được chỉ định. Các thuộc tính được sử dụng để phân cụm các nút; tức là hai nút có thuộc tính tương tự có xu hướng nằm trong cùng một cụm. Mỗi thuộc tính có thể phải được chuẩn hóa để số liệu khoảng cách đã chọn để có ý nghĩa. Các thuộc tính phải được chỉ định trừ khi một tùy chỉnh
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 được chỉ định.

                                                                                                    An array of attribute functions, each of which returns a numeric attribute value for the specified node. Attributes are used to cluster the nodes; i.e. two nodes with similar attributes tend to be in the same cluster. Each attribute may have to be normalised in order for the chosen distance metric to make sense. Attributes must be specified unless a custom

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 is specified.

                                                                                                  • Phân loại khoảng cách Distancethe được sử dụng để so sánh các vectơ thuộc tính. Đó là tùy chọn nếu các thuộc tính được chỉ định. Nó có thể đảm nhận một trong một số giá trị:

                                                                                                    The distance classifier used to compare attribute vectors. It is optional if attributes are specified. It may take on one of several values:

                                                                                                    • 'Khoảng cách Euclide'euclide (mặc định)

                                                                                                      Euclidean distance (default)

                                                                                                    • 'Khoảng cách Euclide bình phương của bình phương

                                                                                                      Squared Euclidean distance

                                                                                                    • 'Manhattan'Manhattan khoảng cách

                                                                                                      Manhattan distance

                                                                                                    • 'Khoảng cách Max'Max

                                                                                                      Max distance

                                                                                                    • hàm (độ dài, getpat, getqat [, nodep, nodeq]) một hàm tùy chỉnh trả về khoảng cách giữa các vectơ thuộc tính
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 và
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      A custom function that returns the distance between attribute vectors

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      • Chiều dài của các vectơ.

                                                                                                        The length of the vectors.

                                                                                                      • getPat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 vector.

                                                                                                      • getqat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 vector.

                                                                                                      • Maxiterations [Tùy chọn] Số lần lặp tối đa của thuật toán để chạy (mặc định
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        53).
                                                                                                        [optional]

                                                                                                        An optionally-used reference to the node associated with the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 attribute vector. It is useful for affecting the weights with information outside of the attributes, such as connectivity.

                                                                                                      • Độ nhạy cảm ứng [Tùy chọn] Ngưỡng chênh lệch hệ số được sử dụng để xác định xem thuật toán có hội tụ hay không (mặc định
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        54).
                                                                                                        [optional]

                                                                                                        An optionally-used reference to the node associated with the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 attribute vector. It is useful for affecting the weights with information outside of the attributes, such as connectivity.

                                                                                                    • Thông tin chi tiết

                                                                                                      A custom function that returns the distance between

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      62 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      63. This allows for specifying the distance matrix directly, forgoing attributes.

                                                                                                  • Lưu ý rằng chức năng này thực hiện tập hợp c-mean mờ chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi. [optional]

                                                                                                    The linkage criterion for measuring the distance between two clusters; may be one of

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    83,
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    84 (a.k.a.
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    38, default),
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    86 (a.k.a.
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    87).

                                                                                                  • Hàm này trả về một đối tượng của định dạng sau:

                                                                                                    The mode of the algorithm. For

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    88 (default), clusters are merged until they are at least the specified distance apart. For
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    89, the clusters are recursively merged using the branches in a dendrogram (tree) structure beyond a specified depth.

                                                                                                  • Ví dụ

                                                                                                    In

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    90, distance threshold for stopping the algorithm. All pairs of the returned clusters are at least
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    91 distance apart. Without specifying this value for
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    90, all clusters will eventually be merged into a single cluster.

                                                                                                  • Bí danh:
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    73,

                                                                                                    In

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    93, the depth beyond which branches are merged in the tree. For example, a value of 0 (default) results in all branches being merged into a single cluster.

                                                                                                  • Chỉ xem xét các yếu tố trong bộ sưu tập gọi, tính toán phân cụm phân cấp kết tụ của các nút. [optional]

                                                                                                    In

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    93, whether to add nodes and edges to the graph for the dendrogram (default
                                                                                                    var a = cy.$('#a'); // assume a compound node
                                                                                                    
                                                                                                    // the neighbourhood of `a` contains directly connected elements
                                                                                                    var directlyConnected = a.neighborhood();
                                                                                                    
                                                                                                    // you may want everything connected to its descendants instead
                                                                                                    // because the descendants "belong" to `a`
                                                                                                    var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                    
                                                                                                    52). This is not necessary to run the algorithm, but it is useful for visualising the results.

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng chức năng này thực hiện tập hợp c-mean mờ chỉ trên tập hợp con của biểu đồ trong bộ sưu tập gọi.

                                                                                                Hàm này trả về một đối tượng của định dạng sau:

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                11

                                                                                                nodes.affinityPropagation()           

                                                                                                Bí danh:

                                                                                                npm install cytoscape
                                                                                                
                                                                                                73,
                                                                                                npm install cytoscape
                                                                                                
                                                                                                96,

                                                                                                các nút.options )

                                                                                                • tùy chọn
                                                                                                  • Các thuộc tính: [Hàm (nút) ...] Một mảng các hàm thuộc tính, mỗi hàm trả về giá trị thuộc tính số cho nút được chỉ định. Các thuộc tính được sử dụng để phân cụm các nút; tức là hai nút có thuộc tính tương tự có xu hướng nằm trong cùng một cụm. Mỗi thuộc tính có thể phải được chuẩn hóa để số liệu khoảng cách đã chọn để có ý nghĩa. Các thuộc tính phải được chỉ định trừ khi một tùy chỉnh
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 được chỉ định.

                                                                                                    An array of attribute functions, each of which returns a numeric attribute value for the specified node. Attributes are used to cluster the nodes; i.e. two nodes with similar attributes tend to be in the same cluster. Each attribute may have to be normalised in order for the chosen distance metric to make sense. Attributes must be specified unless a custom

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    48 is specified.

                                                                                                  • Phân loại khoảng cách Distancethe được sử dụng để so sánh các vectơ thuộc tính. Đó là tùy chọn nếu các thuộc tính được chỉ định. Nó có thể đảm nhận một trong một số giá trị:

                                                                                                    The distance classifier used to compare attribute vectors. It is optional if attributes are specified. It may take on one of several values:

                                                                                                    • 'Khoảng cách Euclide'euclide (mặc định)

                                                                                                      Euclidean distance (default)

                                                                                                    • 'Khoảng cách Euclide bình phương của bình phương

                                                                                                      Squared Euclidean distance

                                                                                                    • 'Manhattan'Manhattan khoảng cách

                                                                                                      Manhattan distance

                                                                                                    • 'Khoảng cách Max'Max

                                                                                                      Max distance

                                                                                                    • hàm (độ dài, getpat, getqat [, nodep, nodeq]) một hàm tùy chỉnh trả về khoảng cách giữa các vectơ thuộc tính
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 và
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      A custom function that returns the distance between attribute vectors

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      49 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      50.

                                                                                                      • Chiều dài của các vectơ.

                                                                                                        The length of the vectors.

                                                                                                      • getPat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 vector.

                                                                                                      • getqat (i) một hàm trả về giá trị ith của vectơ
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50.

                                                                                                        A function that returns the ith value of the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 vector.

                                                                                                      • NODEP [Tùy chọn] Một tham chiếu được sử dụng tùy chọn đến nút được liên kết với vectơ thuộc tính
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49. Nó rất hữu ích cho việc ảnh hưởng đến các trọng số với thông tin bên ngoài các thuộc tính, chẳng hạn như kết nối.
                                                                                                        [optional]

                                                                                                        An optionally-used reference to the node associated with the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        49 attribute vector. It is useful for affecting the weights with information outside of the attributes, such as connectivity.

                                                                                                      • Nodeq [Tùy chọn] Một tham chiếu được sử dụng tùy chọn đến nút được liên kết với vectơ thuộc tính
                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50. Nó rất hữu ích cho việc ảnh hưởng đến các trọng số với thông tin bên ngoài các thuộc tính, chẳng hạn như kết nối.
                                                                                                        [optional]

                                                                                                        An optionally-used reference to the node associated with the

                                                                                                        npm install cytoscape
                                                                                                        
                                                                                                        50 attribute vector. It is useful for affecting the weights with information outside of the attributes, such as connectivity.

                                                                                                    • Hàm (NODEP, NODEQ) Một hàm tùy chỉnh trả về khoảng cách giữa
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      62 và
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      63. Điều này cho phép chỉ định ma trận khoảng cách trực tiếp, từ bỏ các thuộc tính.

                                                                                                      A custom function that returns the distance between

                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      62 and
                                                                                                      npm install cytoscape
                                                                                                      
                                                                                                      63. This allows for specifying the distance matrix directly, forgoing attributes.

                                                                                                  • Ưu tiên [Tùy chọn] Số liệu được sử dụng để xác định sự phù hợp của điểm dữ liệu (nghĩa là vectơ thuộc tính nút) để phục vụ như một mẫu mực. Nó có thể có một trong một số giá trị đặc biệt, được xác định từ ma trận tương tự (nghĩa là ma trận khoảng cách âm). Hoặc một thủ công, giá trị số có thể được sử dụng (thường là dấu hiệu ngược lại của các giá trị khoảng cách của bạn). Các giá trị đặc biệt bao gồm: [optional]

                                                                                                    The metric used to determine the suitability of a data point (i.e. node attribute vector) to serve as an exemplar. It may take on one of several special values, which are determined from the similarity matrix (i.e. the negative distance matrix). Or a manual, numeric value may be used (generally of the opposite sign of your distance values). The special values include:

                                                                                                    • 'Trung vị giá trị trung bình của ma trận tương tự (mặc định).

                                                                                                      Use the median value of the similarity matrix (default).

                                                                                                    • 'có nghĩa là giá trị trung bình của ma trận tương tự.

                                                                                                      Use the mean value of the similarity matrix.

                                                                                                    • 'Min'use giá trị tối thiểu của ma trận tương tự.

                                                                                                      Use the minimum value of the similarity matrix.

                                                                                                    • 'Max'use giá trị tối đa của ma trận tương tự.

                                                                                                      Use the maximum value of the similarity matrix.

                                                                                                  • giảm xóc [tùy chọn] một hệ số giảm xóc trên [0,5, 1) (mặc định
                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    38).
                                                                                                    [optional]

                                                                                                    A damping factor on [0.5, 1) (default

                                                                                                    npm install cytoscape
                                                                                                    
                                                                                                    38).

                                                                                                  • Các miniterations [Tùy chọn] Số lượng tối thiểu của ITERAION mà thuật toán sẽ chạy trước khi dừng (mặc định
                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    07).
                                                                                                    [optional]

                                                                                                    The minimum number of iteraions the algorithm will run before stopping (default

                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    07).

                                                                                                  • Maxiterations [Tùy chọn] Số lượng tối đa của các thuật toán sẽ chạy trước khi dừng (mặc định
                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    08).
                                                                                                    [optional]

                                                                                                    The maximum number of iteraions the algorithm will run before stopping (default

                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    08).

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng hàm này thực hiện phân cụm truyền ái trên tập hợp con của biểu đồ trong bộ sưu tập gọi. Tuyên truyền ái lực thường không tính đến cấu trúc liên kết của biểu đồ.

                                                                                                Hàm này trả về một mảng, chứa các bộ sưu tập. Mỗi bộ sưu tập trong mảng là một cụm được tìm thấy bởi thuật toán.

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                12

                                                                                                Các nút ghép

                                                                                                Các chức năng này áp dụng cho các biểu đồ hợp chất.

                                                                                                node.isParent()   

                                                                                                Nhận liệu nút có phải là cha mẹ ghép không (nghĩa là một nút chứa một hoặc nhiều nút con)

                                                                                                node.isChildless()   

                                                                                                Nhận liệu nút không có con (tức là một nút không có nút con)

                                                                                                node.isChild()   

                                                                                                Nhận liệu nút có phải là một đứa trẻ hợp chất hay không (nghĩa là có trong một nút)

                                                                                                node.isOrphan()   

                                                                                                Nhận liệu nút là một đứa trẻ mồ côi (tức là một nút không có cha mẹ)

                                                                                                nodes.parent()       

                                                                                                Nhận nút cha mẹ ghép của mỗi nút trong bộ sưu tập.

                                                                                                các nút.parent ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                nodes.ancestors()           

                                                                                                Bí danh:

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                09,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                09,

                                                                                                Nhận tất cả các nút tổ tiên hỗn hợp (tức là cha mẹ, cha mẹ cha mẹ, v.v.) của mỗi nút trong bộ sưu tập.

                                                                                                các nút.ancestors ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                nodes.commonAncestors()       

                                                                                                Bí danh:

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                09,

                                                                                                Nhận tất cả các nút tổ tiên hỗn hợp (tức là cha mẹ, cha mẹ cha mẹ, v.v.) của mỗi nút trong bộ sưu tập. [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                Thông tin chi tiết

                                                                                                Lưu ý rằng hàm này thực hiện phân cụm truyền ái trên tập hợp con của biểu đồ trong bộ sưu tập gọi. Tuyên truyền ái lực thường không tính đến cấu trúc liên kết của biểu đồ.

                                                                                                nodes.orphans()       

                                                                                                Hàm này trả về một mảng, chứa các bộ sưu tập. Mỗi bộ sưu tập trong mảng là một cụm được tìm thấy bởi thuật toán.

                                                                                                Ví dụ [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                nodes.nonorphans()       

                                                                                                Nhận tất cả các nút Nonorphan (tức là có cha mẹ ghép) trong bộ sưu tập gọi.

                                                                                                các nút.nonorphans ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                nodes.children()       

                                                                                                Nhận tất cả các nút hợp chất (tức là hậu duệ trực tiếp) của mỗi nút trong bộ sưu tập.

                                                                                                các nút.children ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                nodes.descendants()       

                                                                                                Nhận tất cả các nút hợp chất (tức là hậu duệ trực tiếp) của mỗi nút trong bộ sưu tập.

                                                                                                các nút.children ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                nodes.siblings()       

                                                                                                Nhận tất cả các nút hợp chất (tức là hậu duệ trực tiếp) của mỗi nút trong bộ sưu tập.

                                                                                                các nút.children ([, & nbsp; selector]) [selector] )

                                                                                                • Bộ chọn [Tùy chọn] Một bộ chọn được sử dụng để lọc bộ sưu tập kết quả. [optional]

                                                                                                  A selector used to filter the resultant collection.

                                                                                                Nhận tất cả các nút hợp chất (tức là hậu duệ trực tiếp) của mỗi nút trong bộ sưu tập.

                                                                                                các nút.children ([, & nbsp; selector])

                                                                                                Nhận tất cả các hậu duệ hỗn hợp (tức là trẻ em, trẻ em trẻ em, v.v.) của mỗi nút trong bộ sưu tập.

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                13

                                                                                                các nút.descendants ([, & nbsp; selector])

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                14

                                                                                                Nhận tất cả anh chị em (tức là cùng một nút hợp chất) của mỗi nút trong bộ sưu tập.

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                15

                                                                                                các nút.siblings ([, & nbsp; selector])

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                16

                                                                                                Người chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                17

                                                                                                Ghi chú & cảnh báo

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                18

                                                                                                Một bộ chọn có chức năng tương tự như bộ chọn CSS trên các thành phần DOM, nhưng các bộ chọn trong cytoscape.js thay vào đó hoạt động trên các bộ sưu tập các phần tử đồ thị. Lưu ý rằng bất cứ nơi nào một bộ chọn có thể được chỉ định là đối số cho một hàm, hàm bộ lọc kiểu ____ 756 có thể được sử dụng thay cho bộ chọn. Ví dụ:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                19

                                                                                                Các bộ chọn có thể được kết hợp với nhau để thực hiện các truy vấn mạnh mẽ trong cytoscape.js, ví dụ:

                                                                                                Bộ chọn có thể được kết hợp với nhau (tạo hiệu quả một hợp lý hoặc) với dấu phẩy: Matches elements based on group (

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                64 for nodes,
                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                66 for edges,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                16 for all).

                                                                                                Điều quan trọng cần lưu ý là các chuỗi cần được đặt trong các dấu ngoặc kép: Matches elements that have the specified class (e.g. use

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                21 for a class named “foo”).

                                                                                                Lưu ý rằng một số ký tự cần được thoát khỏi ID, tên trường, v.v. Matches element with the matching ID (e.g.

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                23 is the same as
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                24)

                                                                                                Một số ví dụ về các ký tự này bao gồm import cytoscape from 'cytoscape'; 13. Cố gắng tránh sử dụng các ký tự không phải là alpha cho tên trường và ID để giữ cho mọi thứ đơn giản. Nếu bạn phải sử dụng các ký tự đặc biệt cho ID, hãy sử dụng bộ chọn dữ liệu thay vì bộ chọn ID:

                                                                                                Bộ chọn có thể truy cập các thành phần mảng và thuộc tính đối tượng với ghi chú dấu chấm: Matches elements if they have the specified data attribute defined, i.e. not

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                10 (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                27 for an attribute named “foo”). Here,
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                11 is considered a defined value.

                                                                                                Nhóm, Lớp học và ID Matches elements if the specified data attribute is not defined, i.e.

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                10 (e.g
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                31). Here,
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                11 is considered a defined value.

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                64,
                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                66 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                16 (Bộ chọn nhóm) khớp với các phần tử dựa trên nhóm (
                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                64 cho các nút,
                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                66 cho các cạnh,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                16 cho tất cả).
                                                                                                Matches elements if the specified data attribute is a truthy value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                34).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                20 khớp với các yếu tố có lớp được chỉ định (ví dụ: sử dụng
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                21 cho một lớp có tên là FOO FOO).
                                                                                                Matches elements if the specified data attribute is a falsey value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                36).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                22 khớp với phần tử với ID khớp (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                23 giống như
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                24)
                                                                                                Matches elements if their data attribute matches a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                38 or
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                39).

                                                                                                Dữ liệu Matches elements if their data attribute doesn’t match a specified value (e.g.

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                41 or
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                42).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                25 khớp với các phần tử nếu chúng có thuộc tính dữ liệu được chỉ định được xác định, tức là không phải
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                10 (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                27 cho một thuộc tính có tên là FOO FOO). Ở đây,
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                11 được coi là một giá trị xác định.
                                                                                                Matches elements if their data attribute is greater than a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                44 or
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                45).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                29 khớp với các phần tử nếu thuộc tính dữ liệu được chỉ định không được xác định, tức là
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                10 (ví dụ
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                31). Ở đây,
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                11 được coi là một giá trị xác định.
                                                                                                Matches elements if their data attribute is greater than or equal to a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                47 or
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                48).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                33 khớp với các phần tử nếu thuộc tính dữ liệu được chỉ định là giá trị sự thật (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                34).
                                                                                                Matches elements if their data attribute is less than a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                50 or
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                51).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                35 khớp với các phần tử nếu thuộc tính dữ liệu được chỉ định là giá trị sai (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                36).
                                                                                                Matches elements if their data attribute is less than or equal to a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                53 or
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                54).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                37 khớp với các phần tử nếu thuộc tính dữ liệu của chúng khớp với một giá trị được chỉ định (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                38 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                39).
                                                                                                Matches elements if their data attribute contains the specified value as a substring (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                56).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                40 khớp với các phần tử nếu thuộc tính dữ liệu của chúng không khớp với một giá trị được chỉ định (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                41 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                42).
                                                                                                Matches elements if their data attribute starts with the specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                58).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                43 khớp với các phần tử nếu thuộc tính dữ liệu của chúng lớn hơn một giá trị được chỉ định (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                44 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                45).
                                                                                                Matches elements if their data attribute ends with the specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                60).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                46 khớp với các phần tử nếu thuộc tính dữ liệu của chúng lớn hơn hoặc bằng giá trị được chỉ định (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                47 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                48).
                                                                                                Matches elements if their data attribute is an array and the element at the defined index matches a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                62).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                49 khớp với các phần tử nếu thuộc tính dữ liệu của chúng nhỏ hơn một giá trị được chỉ định (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                50 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                51).
                                                                                                Matches elements if their data attribute is an object and the property with the defined name matches a specified value (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                64).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                52 khớp với các phần tử nếu thuộc tính dữ liệu của chúng nhỏ hơn hoặc bằng với giá trị được chỉ định (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                53 hoặc
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                54).
                                                                                                Prepended to an operator so that is case insensitive (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                66,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                67,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                68)

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                55 khớp với các phần tử nếu thuộc tính dữ liệu của chúng chứa giá trị được chỉ định dưới dạng chuỗi con (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                56).
                                                                                                Prepended to an operator so that it is negated (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                70,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                71)

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                72 (khung siêu dữ liệu) sử dụng giá đỡ vuông kép thay cho các khung vuông để khớp với siêu dữ liệu thay vì dữ liệu (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                73 khớp với các yếu tố có mức độ lớn hơn 2). Các thuộc tính được hỗ trợ bao gồm
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                74,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                75 và
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                76.
                                                                                                Use double square brackets in place of square ones to match against metadata instead of data (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                73 matches elements of degree greater than 2). The properties that are supported include
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                74,
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                75, and
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                76.

                                                                                                Các nút ghép

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                77 (Bộ chọn con) khớp với trẻ em trực tiếp của nút cha (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                78).
                                                                                                Matches direct children of the parent node (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                78).

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                79 (Bộ chọn hậu duệ) khớp với hậu duệ của nút cha (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                80).
                                                                                                Matches descendants of the parent node (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                80).

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                70 (Bộ chọn chủ đề) đặt chủ đề của bộ chọn (ví dụ:
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                82 để chọn các nút mẹ thay vì con).
                                                                                                Sets the subject of the selector (e.g.
                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                82 to select the parent nodes instead of the children).

                                                                                                Tiểu bang

                                                                                                Hoạt hình

                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  83: khớp các yếu tố hiện đang được hoạt hình.
                                                                                                  : Matches elements that are currently being animated.
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  84: khớp các yếu tố hiện không được hoạt hình.
                                                                                                  : Matches elements that are not currently being animated.

                                                                                                Lựa chọn

                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  85: khớp với các yếu tố được chọn.
                                                                                                  : Matches selected elements.
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  86: Phù hợp với các yếu tố mà aren đã chọn.
                                                                                                  : Matches elements that aren’t selected.
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  87: khớp với các yếu tố có thể lựa chọn.
                                                                                                  : Matches elements that are selectable.
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  88: Phù hợp với các yếu tố mà không thể lựa chọn.
                                                                                                  : Matches elements that aren’t selectable.

                                                                                                Khóa

                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  89: Các phần tử bị khóa.
                                                                                                  : Matches locked elements.
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  90: Phù hợp với các yếu tố mà aren bị khóa.
                                                                                                  : Matches elements that aren’t locked.

                                                                                                Phong cách

                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  91: phù hợp với các yếu tố có thể nhìn thấy (nghĩa là
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  06 và
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  07).
                                                                                                  : Matches elements that are visible (i.e.
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  06 and
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  07).
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  94: khớp các yếu tố được ẩn (nghĩa là
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  07 hoặc
                                                                                                  import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  96).
                                                                                                  : Matches elements that are hidden (i.e.
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  07 or
                                                                                                  import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  96).
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  97: Phù hợp với các yếu tố trong suốt (nghĩa là
                                                                                                  import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  98 cho bản thân hoặc cha mẹ).
                                                                                                  : Matches elements that are transparent (i.e.
                                                                                                  import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  98 for self or parents).
                                                                                                • import cytoscape from 'cytoscape';
                                                                                                  
                                                                                                  99: khớp với một phần tử nếu hình nền của nó hiện đang tải.
                                                                                                  : Matches an element if its background image is currently loading.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  000: khớp với một phần tử nếu hình ảnh nền của nó hiện không tải; tức là không có hình ảnh hoặc hình ảnh đã được tải).
                                                                                                  : Matches an element if its background image not currently loading; i.e. there is no image or the image is already loaded).

                                                                                                Tương tác người dùng:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  001: Kết hợp các yếu tố đang bị người dùng nắm lấy.
                                                                                                  : Matches elements that are being grabbed by the user.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  002: khớp với các yếu tố hiện không bị người dùng nắm lấy.
                                                                                                  : Matches elements that are not currently being grabbed by the user.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  003: khớp với các yếu tố có thể lấy được bởi người dùng.
                                                                                                  : Matches elements that are grabbable by the user.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  004: khớp với các yếu tố không thể lấy được bởi người dùng.
                                                                                                  : Matches elements that are not grabbable by the user.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005: khớp với các phần tử hoạt động (nghĩa là tương tác người dùng, tương tự như
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005 trong CSS).
                                                                                                  : Matches elements that are active (i.e. user interaction, similar to
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005 in CSS).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  007: khớp với các yếu tố không hoạt động (nghĩa là không có tương tác người dùng).
                                                                                                  : Matches elements that are inactive (i.e. no user interaction).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  008: khớp với các phần tử khi được hiển thị trong môi trường dựa trên cảm ứng (ví dụ: trên máy tính bảng).
                                                                                                  : Matches elements when displayed in a touch-based enviroment (e.g. on a tablet).

                                                                                                Trong hoặc ngoài đồ thị

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  009: Kết hợp các phần tử đã bị xóa khỏi biểu đồ.
                                                                                                  : Matches elements that have been removed from the graph.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  010: khớp với các phần tử có trong biểu đồ (chúng không bị xóa).
                                                                                                  : Matches elements that have are in the graph (they are not removed).

                                                                                                Các nút ghép

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  011: khớp với các nút mẹ (chúng có một hoặc nhiều nút con).
                                                                                                  : Matches parent nodes (they have one or more child nodes).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  012: khớp với các nút không có con (chúng không có nút con).
                                                                                                  : Matches childless nodes (they have zero child nodes).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  013 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  014: khớp với các nút con (mỗi nút có cha mẹ).
                                                                                                  or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  014
                                                                                                  : Matches child nodes (they each have a parent).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  015: khớp các nút mồ côi (mỗi cái chúng không có cha mẹ).
                                                                                                  : Matches orphan nodes (they each have no parent).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  016: khớp với các nút mẹ. Cũng khớp với các cạnh được kết nối với các nút mẹ (mỗi nút có ít nhất một nút cha giữa nguồn và mục tiêu).
                                                                                                  : Matches parent nodes. Also matches edges connected to parent nodes (they each have at least one parent node among source and target).

                                                                                                Cạnh

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  017: khớp các cạnh vòng lặp (cùng nguồn với mục tiêu).
                                                                                                  : Matches loop edges (same source as target).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  018: khớp với các cạnh đơn giản (nghĩa là có trong một biểu đồ đơn giản, nguồn khác như mục tiêu).
                                                                                                  : Matches simple edges (i.e. as would be in a simple graph, different source as target).

                                                                                                Phong cách

                                                                                                Phong cách trong cytoscape.js tuân theo các quy ước CSS càng gần càng tốt. Trong hầu hết các trường hợp, một thuộc tính có cùng tên và hành vi như tên CSS tương ứng của nó. Tuy nhiên, các thuộc tính trong CSS không đủ để chỉ định kiểu của một số phần của biểu đồ. Trong trường hợp đó, các thuộc tính bổ sung được giới thiệu là duy nhất cho cytoscape.js.

                                                                                                Để đơn giản và dễ sử dụng, các quy tắc đặc hiệu hoàn toàn bị bỏ qua trong các kiểu dáng. Đối với một thuộc tính kiểu nhất định cho một phần tử nhất định, bộ chọn phù hợp cuối cùng sẽ thắng.

                                                                                                Định dạng

                                                                                                Kiểu được chỉ định khi khởi tạo có thể ở định dạng chức năng, ở định dạng JSON đơn giản hoặc ở định dạng chuỗi - định dạng JSON và định dạng chuỗi đơn giản sẽ hữu ích hơn nếu bạn muốn kéo kiểu từ máy chủ.

                                                                                                Định dạng chuỗi

                                                                                                Lưu ý rằng các dấu chấm phẩy cho mỗi thuộc tính, ngoại trừ cuối cùng, là bắt buộc. Phân tích cú pháp chắc chắn sẽ thất bại nếu không có họ.

                                                                                                Một tệp mẫu ví dụ:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                20

                                                                                                Khi khởi tạo:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                21

                                                                                                Định dạng JSON đơn giản

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                22

                                                                                                Định dạng chức năng

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                23

                                                                                                Bạn có thể sử dụng thay thế

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                019 thay cho
                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                09, ví dụ:
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                021 hoặc
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                022.

                                                                                                Giá trị chức năng

                                                                                                Trong các định dạng biểu định kiểu JSON hoặc chức năng, có thể chỉ định hàm là giá trị cho thuộc tính kiểu. Theo cách này, giá trị kiểu có thể được chỉ định thông qua một hàm trên cơ sở trên cơ sở.

                                                                                                Sử dụng một hàm như một giá trị thuộc tính kiểu có thể thuận tiện trong một số trường hợp nhất định. Tuy nhiên, nó có thể không phải là một lựa chọn hiệu suất. Do đó, có thể đáng để sử dụng bộ nhớ đệm nếu có thể, chẳng hạn như bằng cách sử dụng chức năng Lodash

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                023.

                                                                                                Lưu ý rằng nếu sử dụng các hàm làm giá trị kiểu, sẽ không thể tuần tự hóa và giảm giá biểu định kiểu của bạn thành JSON thích hợp.

                                                                                                Hàm không nên đọc bất kỳ giá trị kiểu nào khác, cũng không nên thay đổi trạng thái cho các phần tử hoặc cho biểu đồ. Nói chung, nó chỉ phụ thuộc vào việc đọc

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                79,
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                07,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                026 hoặc
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                027.

                                                                                                Example:

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                24

                                                                                                Loại tài sản

                                                                                                • Màu sắc có thể được chỉ định theo tên (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  028), Hex (ví dụ: ____101029 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  030), RGB (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  031) hoặc HSL (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  032).
                                                                                                • Các giá trị yêu cầu một số, chẳng hạn như độ dài, có thể được chỉ định trong các giá trị pixel (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  033), các giá trị không đơn vị được ngầm định tính bằng pixel (ví dụ: ____101034) hoặc giá trị EM (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  035). Kích thước được chỉ định trong các tọa độ mô hình, do đó kích thước trên màn hình (kết xuất) được chỉ định tại Zoom 1.
                                                                                                • Các giá trị độ mờ được chỉ định là các số trên
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  036 (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  037).
                                                                                                • Thời gian được đo bằng đơn vị MS hoặc S (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  038).
                                                                                                • Các góc được đo bằng radian (ví dụ: ____1039) hoặc độ (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  040), theo chiều kim đồng hồ.
                                                                                                • Các thuộc tính chỉ định danh sách các giá trị có thể được định dạng theo một trong các định dạng sau:
                                                                                                  • Chuỗi phân tách không gian (ví dụ:
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    041)
                                                                                                    • Lưu ý rằng đối với danh sách các màu, điều này có nghĩa là bạn không thể sử dụng khoảng trống trong
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      042 hoặc
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      043.
                                                                                                    • Đây là định dạng duy nhất có thể trong các bảng kiểu chuỗi (thường là một tệp bên ngoài).
                                                                                                  • Một mảng JS (ví dụ:
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    044)
                                                                                                    • Định dạng này có thể được sử dụng trong các kiểu dáng chức năng chuỗi và trong các kiểu dáng JSON.

                                                                                                Người lập bản đồ

                                                                                                Ngoài việc chỉ định giá trị của một thuộc tính hoàn toàn, nhà phát triển cũng có thể sử dụng một bản đồ để chỉ định động giá trị tài sản.

                                                                                                Nếu một ánh xạ được xác định, xác định dữ liệu được ánh xạ cho tất cả các phần tử hoặc sử dụng bộ chọn để giới hạn ánh xạ đến các phần tử có dữ liệu được ánh xạ được xác định. Ví dụ: bộ chọn

                                                                                                import cytoscape from 'cytoscape';
                                                                                                
                                                                                                27 sẽ chỉ áp dụng cho các phần tử với trường dữ liệu
                                                                                                <script src="cytoscape.min.js">script>
                                                                                                
                                                                                                53 được xác định.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  047 Chỉ định ánh xạ trực tiếp đến trường dữ liệu phần tử. Ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  048 sẽ ánh xạ một thuộc tính đến giá trị trong trường Phần tử ____1049 trong dữ liệu của nó (nghĩa là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  050). Điều này rất hữu ích để ánh xạ tới các thuộc tính như văn bản nhãn (thuộc tính
                                                                                                  <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  93).
                                                                                                  specifies a direct mapping to an element’s data field. For example,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  048 would map a property to the value in an element’s
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  049 field in its data (i.e.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  050). This is useful for mapping to properties like label text (the
                                                                                                  <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  93 property).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  052 Chỉ định ánh xạ tuyến tính đến trường dữ liệu phần tử. Ví dụ,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  053 ánh xạ một phần tử trọng lượng trọng lượng thành màu sắc giữa màu xanh và đỏ cho trọng lượng từ 0 đến 100. Ví dụ, một phần tử với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  054 sẽ được ánh xạ sang màu xanh lam. Các phần tử có giá trị nằm ngoài phạm vi được chỉ định được ánh xạ tới các giá trị cực trị. Trong ví dụ trước, một yếu tố có
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  055 sẽ được ánh xạ sang màu xanh.
                                                                                                  specifies a linear mapping to an element’s data field. For example,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  053 maps an element’s weight to colours between blue and red for weights between 0 and 100. An element with
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  054 would be mapped to blue, for instance. Elements whose values fall outside of the specified range are mapped to the extremity values. In the previous example, an element with
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  055 would be mapped to blue.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  056 Một hàm có thể được truyền dưới dạng giá trị của thuộc tính kiểu. Hàm có một đối số
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  62 chỉ định phần tử mà giá trị thuộc tính kiểu đang được tính toán.
                                                                                                  A function may be passed as the value of a style property. The function has a single
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  62 argument which specifies the element for which the style property value is being calculated.
                                                                                                  • Không chỉ định giá trị hợp lệ cho thuộc tính kiểu tương ứng cho tất cả các yếu tố mà khối chọn tương ứng của nó áp dụng. specify a valid value for the corresponding style property for all elements that its corresponding selector block applies.
                                                                                                  • Sử dụng các chức năng thuần túy chỉ phụ thuộc vào use pure functions that depend on only
                                                                                                    • cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      79,
                                                                                                    • var a = cy.$('#a'); // assume a compound node
                                                                                                      
                                                                                                      // the neighbourhood of `a` contains directly connected elements
                                                                                                      var directlyConnected = a.neighborhood();
                                                                                                      
                                                                                                      // you may want everything connected to its descendants instead
                                                                                                      // because the descendants "belong" to `a`
                                                                                                      var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                      
                                                                                                      07, hoặc
                                                                                                    • Trạng thái cơ bản có thể được biểu diễn với các bộ chọn (ví dụ:
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      060 là OK vì có một bộ chọn
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      85).
                                                                                                  • Không làm biến đổi trạng thái đồ thị cho
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    60 hoặc cho bất kỳ
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    62 nào bên trong hàm Mapper của bạn.
                                                                                                    mutate the graph state for
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    60 or for any
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    62 inside your mapper function.
                                                                                                  • Không tạo các phụ thuộc theo chu kỳ (nghĩa là một thuộc tính một kiểu đọc giá trị của thuộc tính kiểu khác). Chức năng kiểu của bạn không nên gọi các chức năng như
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    78 hoặc
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    79.
                                                                                                    create cyclic dependencies (i.e. one style property reads the value of another style property). Your style function should not call functions like
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    78 or
                                                                                                    cytoscape({
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: {
                                                                                                        nodes: [
                                                                                                          {
                                                                                                            data: { id: 'a' }
                                                                                                          },
                                                                                                    
                                                                                                          {
                                                                                                            data: { id: 'b' }
                                                                                                          }
                                                                                                        ],
                                                                                                        edges: [
                                                                                                          {
                                                                                                            data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                          }
                                                                                                        ]
                                                                                                      },
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'grid',
                                                                                                        rows: 1
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    });
                                                                                                    
                                                                                                    79.
                                                                                                  • Không sử dụng các chức năng nếu bạn có thể sử dụng các máy lập và bộ chọn tích hợp để thể hiện điều tương tự. Nếu bạn sử dụng một chức năng, bạn sẽ mất các cải tiến hiệu suất phong cách tích hợp và bạn sẽ phải tối ưu hóa và lưu trữ chức năng. use functions if you can use built-in mappers and selectors to express the same thing. If you use a function, you lose built-in style performance enhancements and you’ll have to optimise and cache the function yourself.

                                                                                                Thân nút

                                                                                                Shape:

                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  90: Chiều rộng của cơ thể nút.
                                                                                                  : The width of the node’s body.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  067: Chiều cao của cơ thể nút.
                                                                                                  : The height of the node’s body.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  068: Hình dạng của cơ thể nút. Lưu ý rằng mỗi hình dạng phù hợp trong
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  90 và
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  067 được chỉ định, và do đó bạn có thể phải điều chỉnh
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  90 và
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  067 nếu bạn mong muốn một hình dạng công bằng (tức là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  073 cho một số hình dạng đều đặn). Chỉ các hình dạng
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  074 được hỗ trợ bởi các hợp chất, bởi vì kích thước của một hợp chất được xác định bởi hộp giới hạn của trẻ em. Các giá trị sau được chấp nhận:
                                                                                                  : The shape of the node’s body. Note that each shape fits within the specified
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  90 and
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  067, and so you may have to adjust
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  90 and
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  067 if you desire an equilateral shape (i.e.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  073 for several equilateral shapes). Only
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  074 shapes are supported by compounds, because the dimensions of a compound are defined by the bounding box of the children. The following values are accepted:
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    075
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    076
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    077
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    078
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    079
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    080
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    081
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    082
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    083
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    084
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    085
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    086
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    087
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    088
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    089
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    090
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    091
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    092
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    093
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    094
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    095
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    096
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    097
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    098
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    099 (đa giác tùy chỉnh được chỉ định qua
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    100).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  100: Một mảng (hoặc chuỗi phân tách không gian) của các số nằm trên [-1, 1], biểu thị các giá trị x và y xen kẽ (nghĩa là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  102). Điều này đại diện cho các điểm trong đa giác cho hình dạng nút. Hộp giới hạn của nút được đưa ra bởi (-1, -1), (1, -1), (1, 1), (-1, 1). Vị trí nút Node là nguồn gốc (0, 0).
                                                                                                  : An array (or a space-separated string) of numbers ranging on [-1, 1], representing alternating x and y values (i.e.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  102). This represents the points in the polygon for the node’s shape. The bounding box of the node is given by (-1, -1), (1, -1), (1, 1), (-1, 1). The node’s position is the origin (0, 0).

                                                                                                Background:

                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  94: Màu sắc của cơ thể nút.
                                                                                                  : The colour of the node’s body.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  104: Làm đen phần thân nút của nút cho các giá trị từ 0 đến 1; làm trắng phần thân nút của nút cho các giá trị từ 0 đến -1.
                                                                                                  : Blackens the node’s body for values from 0 to 1; whitens the node’s body for values from 0 to -1.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  105: Mức độ mờ của màu nền nút.
                                                                                                  : The opacity level of the node’s background colour.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  106: Phong cách lấp đầy của cơ thể nút; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107 (mặc định),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  108 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  109.
                                                                                                  : The filling style of the node’s body; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107 (default),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  108, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  109.

                                                                                                Gradient:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  110: Màu sắc của độ dốc nền dừng (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  111).
                                                                                                  : The colours of the background gradient stops (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  111).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  112: Các vị trí của độ dốc nền dừng (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  113). Nếu không được chỉ định hoặc không hợp lệ, các điểm dừng sẽ chia đều.
                                                                                                  : The positions of the background gradient stops (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  113). If not specified or invalid, the stops will divide equally.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  114: Đối với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  115, thuộc tính này xác định hướng của độ dốc nền. Các giá trị sau được chấp nhận:
                                                                                                  : For
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  115, this property defines the direction of the background gradient. The following values are accepted:
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    116 (mặc định)
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    117
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    118
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    119
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    120
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    121
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    122
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    123

                                                                                                Border:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  124: Kích thước của đường viền nút.
                                                                                                  : The size of the node’s border.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  125: Phong cách của biên giới nút; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  127,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  129.
                                                                                                  : The style of the node’s border; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  127,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  129.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  130: Màu sắc của đường viền nút.
                                                                                                  : The colour of the node’s border.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  131: Độ mờ của đường viền nút.
                                                                                                  : The opacity of the node’s border.

                                                                                                Padding:

                                                                                                Một phần đệm xác định một bổ sung cho một kích thước nút. Ví dụ,

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                132 thêm vào một nút bên ngoài (tức là tổng) chiều rộng và chiều cao. Điều này có thể được sử dụng để thêm khoảng cách giữa cha mẹ nút hợp chất và con cái của nó.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  132: Lượng đệm xung quanh tất cả các cạnh của nút. Tỷ lệ phần trăm hoặc giá trị pixel có thể được chỉ định. Ví dụ, cả
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134 và
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  135 đều là các giá trị chấp nhận được. Theo mặc định, phần trăm đệm được tính theo tỷ lệ phần trăm của chiều rộng nút.
                                                                                                  : The amount of padding around all sides of the node. Either percentage or pixel value can be specified. For example, both
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134 and
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  135 are acceptable values. By default, percentage padding is calculated as a percentage of node width.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  136: Xác định cách tính toán đệm nếu và chỉ khi đơn vị phần trăm được sử dụng. Chấp nhận một trong các từ khóa được chỉ định dưới đây.
                                                                                                  : Determines how padding is calculated if and only if the percentage unit is used. Accepts one of the keywords specified below.
                                                                                                  • <script type="module">
                                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                                    script>
                                                                                                    
                                                                                                    90: Tính toán đệm theo tỷ lệ phần trăm chiều rộng nút.
                                                                                                    : calculate padding as a percentage the node width.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    067: Tính toán đệm theo tỷ lệ phần trăm của chiều cao nút.
                                                                                                    : calculate padding as a percentage of the node height.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    139: Tính toán đệm theo tỷ lệ phần trăm của mức trung bình của chiều rộng và chiều cao nút.
                                                                                                    : calculate padding as a percentage of the average of the node width and height.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    140: Tính toán đệm theo tỷ lệ phần trăm của tối thiểu chiều rộng và chiều cao của nút.
                                                                                                    : calculate padding as a percentage of the minimum of the node width and height.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    141: Tính toán đệm theo tỷ lệ phần trăm của tối đa chiều rộng và chiều cao của nút.
                                                                                                    : calculate padding as a percentage of the maximum of the node width and height.

                                                                                                Kích thước phụ huynh hỗn hợp:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  142: có bao gồm các nhãn của hậu duệ trong việc định cỡ một nút ghép hay không; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  143 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  144.
                                                                                                  : Whether to include labels of descendants in sizing a compound node; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  143 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  144.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145: Chỉ định chiều rộng tối thiểu (bên trong) của cơ thể nút cho một nút cha mẹ hỗn hợp (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  146). Nếu các sai lệch cho
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145 không tăng tới 100%, thì các sai lệch được chuẩn hóa thành tổng số 100%.
                                                                                                  : Specifies the minimum (inner) width of the node’s body for a compound parent node (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  146). If the biases for
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145 do not add up to 100%, then the biases are normalised to a total of 100%.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  148: Khi một nút hợp chất được mở rộng bởi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145 của nó, giá trị này chỉ định phần trăm của chiều rộng thêm được đặt ở phía bên trái của nút (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                  : When a compound node is enlarged by its
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145, this value specifies the percent of the extra width put on the left side of the node (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  151: Khi một nút hợp chất được mở rộng bởi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145 của nó, giá trị này chỉ định phần trăm của chiều rộng thêm được đặt ở phía bên phải của nút (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                  : When a compound node is enlarged by its
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  145, this value specifies the percent of the extra width put on the right side of the node (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154: Chỉ định chiều cao tối thiểu (bên trong) của cơ thể nút cho một nút cha mẹ hỗn hợp (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  146). Nếu các sai lệch cho
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154 không tăng tới 100%, thì các sai lệch được chuẩn hóa thành tổng số 100%.
                                                                                                  : Specifies the minimum (inner) height of the node’s body for a compound parent node (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  146). If the biases for
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154 do not add up to 100%, then the biases are normalised to a total of 100%.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  157: Khi một nút hợp chất được mở rộng bởi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154 của nó, giá trị này chỉ định phần trăm của chiều rộng thêm được đặt ở phía trên của nút (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                  : When a compound node is enlarged by its
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154, this value specifies the percent of the extra width put on the top side of the node (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  160: Khi một nút hợp chất được mở rộng bởi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154 của nó, giá trị này chỉ định phần trăm của chiều rộng thêm ở phía dưới của nút (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).
                                                                                                  : When a compound node is enlarged by its
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  154, this value specifies the percent of the extra width put on the bottom side of the node (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134).

                                                                                                Hình nền

                                                                                                Một hình ảnh nền có thể được áp dụng cho một cơ thể nút. Các thuộc tính sau hỗ trợ nhiều giá trị (phân tách không gian hoặc mảng) với các chỉ số liên quan.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  163: URL trỏ đến hình ảnh nên được sử dụng làm nền nút Node. PNG, JPG và SVG là các định dạng được hỗ trợ.
                                                                                                  : The URL that points to the image that should be used as the node’s background. PNG, JPG, and SVG are supported formats.
                                                                                                  • Bạn có thể sử dụng URI dữ liệu để sử dụng hình ảnh nhúng, do đó lưu yêu cầu HTTP.
                                                                                                  • Bạn có thể chỉ định nhiều hình ảnh nền bằng cách tách từng hình ảnh với một không gian (định dạng được phân định không gian), nhưng nếu sử dụng bảng kiểu không chuỗi, thì sử dụng mảng được ưa thích.
                                                                                                    • Các hình ảnh sẽ được áp dụng cho cơ thể nút Node theo thứ tự được đưa ra, xếp một cái lên nhau.
                                                                                                    • Khi chỉ định các thuộc tính cho nhiều hình ảnh, nếu thuộc tính cho một hình ảnh đã cho không được cung cấp, thì giá trị mặc định được sử dụng làm dự phòng.
                                                                                                  • Để đặt một hình ảnh bên ngoài giới hạn của thân nút, cần phải chỉ định
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    164 và
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    165 cho các hình ảnh đi
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    166 pixel ngoài hộp giới hạn của nút. Lưu ý rằng các giá trị của
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    166 phải tương đối nhỏ cho hiệu suất.
                                                                                                  • Để kiểm soát thứ tự vẽ của hình ảnh nền (ví dụ rằng hình ảnh nền lớp phủ trên đường viền), cần phải chỉ định
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    168 (mặc định
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    169).
                                                                                                  • Xem xét hình ảnh SVG:
                                                                                                    • Luôn bao gồm tiêu đề XML này trong mỗi hình ảnh SVG:
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    25
                                                                                                    • Sử dụng Encodeuricomponent trên URI dữ liệu SVG.
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    26
                                                                                                    • Không sử dụng mã hóa cơ sở 64 cho SVG trong URI dữ liệu.
                                                                                                    • Phông chữ web (ví dụ: Woff, Woff2) có thể không hoạt động trong các phần tử SVG
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      170 trong một số trình duyệt. Để có khả năng tương thích trình duyệt tốt nhất, hãy sử dụng các phiên bản SVG gốc của các biểu tượng của bạn-thường được xác định là các yếu tố
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      171.
                                                                                                    • Nếu bạn ghi nhớ những người lập bản đồ chức năng để tạo SVG về mặt thủ tục, bạn có thể muốn chức năng của mình trả về một đối tượng như
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      172. Điều này cho phép bạn sử dụng kích thước của hình ảnh cho các thuộc tính kiểu khác, như chiều rộng và chiều cao nút. Ví dụ ::
                                                                                                      cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      27
                                                                                                    • Sử dụng thuộc tính
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      173 trong hình ảnh SVG có thể gây ra các vấn đề kết xuất trong Firefox.
                                                                                                    • Hình ảnh SVG có thể không hoạt động nhất quán trong Internet Explorer.
                                                                                                    • Gói
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      174 đóng vai trò là một ví dụ điển hình cho việc sử dụng hình ảnh SVG trong bảng kiểu. Đó là bảng tạo kiểu tạo ra các trang trí trên các nút phù hợp với tiêu chuẩn SBGN.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  175: Tất cả các hình ảnh được tải với thuộc tính
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  176 có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  177 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  178. Mặc định được đặt thành
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  177.
                                                                                                  : All images are loaded with a
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  176 attribute which may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  177 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  178. The default is set to
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  177.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  180: Độ mờ của hình nền.
                                                                                                  : The opacity of the background image.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  181: Xác định xem hình nền có được làm mịn hay không (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182, mặc định) hay không (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183). Đây chỉ là một gợi ý và trình duyệt có thể hoặc không thể tôn trọng giá trị được đặt cho thuộc tính này.
                                                                                                  : Determines whether background image is smoothed (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182, default) or not (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183). This is only a hint, and the browser may or may not respect the value set for this property.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  184: Xác định xem hình ảnh nền có nằm trong (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  169, mặc định) hay trên đầu nút (________ 1186).
                                                                                                  : Determines whether background image is within (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  169, default) or over top of the node(
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  186).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  187: Chỉ định chiều rộng của hình ảnh. Giá trị phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) có thể được sử dụng để đặt chiều rộng hình ảnh so với chiều rộng nút. Nếu được sử dụng kết hợp với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  189, thì giá trị này sẽ ghi đè lên chiều rộng của hình ảnh trong việc tính toán sự phù hợp - do đó ghi đè lên tỷ lệ khung hình. Giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 được sử dụng theo mặc định, sử dụng chiều rộng của hình ảnh.
                                                                                                  : Specifies the width of the image. A percent value (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) may be used to set the image width relative to the node width. If used in combination with
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  189, then this value overrides the width of the image in calculating the fitting — thereby overriding the aspect ratio. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 value is used by default, which uses the width of the image.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  191: Chỉ định chiều cao của hình ảnh. Giá trị phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) có thể được sử dụng để đặt chiều cao hình ảnh so với chiều cao nút. Nếu được sử dụng kết hợp với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  189, thì giá trị này sẽ ghi đè chiều cao của hình ảnh trong việc tính toán sự phù hợp - do đó ghi đè lên tỷ lệ khung hình. Giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 được sử dụng theo mặc định, sử dụng chiều cao của hình ảnh.
                                                                                                  : Specifies the height of the image. A percent value (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) may be used to set the image height relative to the node height. If used in combination with
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  189, then this value overrides the height of the image in calculating the fitting — thereby overriding the aspect ratio. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 value is used by default, which uses the height of the image.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  189: Làm thế nào hình ảnh nền phù hợp với nút; Có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 cho kích thước ban đầu,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  197 để phù hợp với nút bên trong hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  198 để che nút.
                                                                                                  : How the background image is fit to the node; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 for original size,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  197 to fit inside node, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  198 to cover the node.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  199: Có lặp lại hình ảnh nền; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  200,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  201,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  202 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  203.
                                                                                                  : Whether to repeat the background image; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  200,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  201,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  202, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  203.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  97: Vị trí X của hình nền, được đo bằng phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) hoặc pixel (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                  : The x position of the background image, measured in percent (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) or pixels (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  207: Vị trí Y của hình nền, được đo bằng phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) hoặc pixel (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                  : The y position of the background image, measured in percent (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) or pixels (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  210: Độ lệch X của hình nền, được đo bằng phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) hoặc pixel (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                  : The x offset of the background image, measured in percent (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) or pixels (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  213: Độ lệch y của hình nền, được đo bằng phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) hoặc pixel (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                  : The y offset of the background image, measured in percent (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134) or pixels (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  206).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  216: Thay đổi xem chiều rộng được tính toán liên quan đến chiều rộng của nút hay chiều rộng ngoài phần đệm; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  217 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218. Nếu không được chỉ định,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218 được sử dụng theo mặc định.
                                                                                                  : Changes whether the width is calculated relative to the width of the node or the width in addition to the padding; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  217 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218. If not specified,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218 is used by default.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  220: Thay đổi xem chiều cao được tính toán liên quan đến chiều cao của nút hay chiều cao ngoài phần đệm; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  217 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218. Nếu không được chỉ định,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218 được sử dụng theo mặc định.
                                                                                                  : Changes whether the height is calculated relative to the height of the node or the height in addition to the padding; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  217 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218. If not specified,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  218 is used by default.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  224: cách xử lý cắt hình nền; có thể là
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  64 cho hình dạng nút hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 để không cắt.
                                                                                                  : How background image clipping is handled; may be
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  64 for clipped to node shape or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 for no clipping.

                                                                                                Các thuộc tính sau đây áp dụng cho tất cả các hình ảnh của một nút:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  227: Chỉ định kích thước đệm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  228) mở rộng hộp giới hạn của nút theo mọi hướng. Điều này cho phép hình ảnh được vẽ bên ngoài hộp giới hạn thông thường của nút khi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  224 là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196. Điều này rất hữu ích cho các trang trí nhỏ ngay bên ngoài nút.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  231 chấp nhận 1 giá trị (cho tất cả các hướng), 2 giá trị, (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  232) hoặc 4 giá trị (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  233).
                                                                                                  : Specifies a padding size (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  228) that expands the bounding box of the node in all directions. This allows for images to be drawn outside of the normal bounding box of the node when
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  224 is
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196. This is useful for small decorations just outside of the node.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  231 accepts 1 value (for all directions), 2 values, (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  232) or 4 values (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  233).

                                                                                                Sau đây là một ví dụ về kiểu dáng hình nền hợp lệ bằng JSON. Các hình ảnh ví dụ được chụp từ Wikimedia Commons với giấy phép Creative Commons.

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                28

                                                                                                Đường biên

                                                                                                Các thuộc tính này ảnh hưởng đến kiểu dáng của một dòng cạnh Edge:

                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  90: Chiều rộng của một dòng cạnh.
                                                                                                  : The width of an edge’s line.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  235: Phương pháp cong được sử dụng để tách hai hoặc nhiều cạnh giữa hai nút (demo); có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  236 (mặc định, rất nhanh, các cạnh thẳng đi kèm theo các vòng và hợp chất không được hỗ trợ),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  237 (các cạnh thẳng với tất cả các mũi tên được hỗ trợ),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  238 sử dụng với các điểm điều khiển thủ công),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  241 (một loạt các đường thẳng),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  242 (các đường góc bên phải, đi kèm theo phân cấp). Lưu ý rằng các cạnh
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  236 hoạt động tốt nhất với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  075,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  078 hoặc các nút tương tự. Các hình dạng nút nhỏ hơn, như
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  076, sẽ không được thẩm mỹ. Cũng lưu ý rằng các mũi tên điểm cuối cạnh không được hỗ trợ cho các cạnh
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  236.
                                                                                                  : The curving method used to separate two or more edges between two nodes (demo); may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  236 (default, very fast, bundled straight edges for which loops and compounds are unsupported),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  237 (straight edges with all arrows supported),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  238 (straight triangle edges),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  239 (bundled curved edges),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  240 (curved edges for use with manual control points),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  241 (a series of straight lines),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  242 (right-angled lines, hierarchically bundled). Note that
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  236 edges work best with
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  075,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  078, or similar nodes. Smaller node shapes, like
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  076, will not be as aesthetically pleasing. Also note that edge endpoint arrows are unsupported for
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  236 edges.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  248: Màu sắc của dòng cạnh.
                                                                                                  : The colour of the edge’s line.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  249: Phong cách của dòng Edge Edge; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  127 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128.
                                                                                                  : The style of the edge’s line; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  127, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  253: Kiểu mũ của dòng cạnh; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  254 (mặc định),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  255 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  256. Nắp có thể hoặc không thể nhìn thấy, tùy thuộc vào hình dạng của nút và kích thước tương đối của nút và cạnh. Mũ khác với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  254 mở rộng ra ngoài điểm cuối được chỉ định của cạnh.
                                                                                                  : The cap style of the edge’s line; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  254 (default),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  255, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  256. The cap may or may not be visible, depending on the shape of the node and the relative size of the node and edge. Caps other than
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  254 extend beyond the specified endpoint of the edge.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  258: Độ mờ của dòng cạnh và mũi tên. Hữu ích nếu bạn muốn có độ mờ riêng cho nhãn cạnh so với đường cạnh. Lưu ý rằng giá trị độ mờ của phần tử cạnh ảnh hưởng đến độ mờ hiệu quả của các thành phần của dòng và nhãn của nó.
                                                                                                  : The opacity of the edge’s line and arrow. Useful if you wish to have a separate opacity for the edge label versus the edge line. Note that the opacity value of the edge element affects the effective opacity of its line and label subcomponents.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  259: Kiểu điền của dòng Edge Edge; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107 (mặc định),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  108 (nguồn đến đích) hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  109 (điểm giữa bên ngoài).
                                                                                                  : The filling style of the edge’s line; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107 (default),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  108 (source to target), or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  109 (midpoint outwards).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  263: Mẫu dòng
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128 chỉ định các độ dài xen kẽ của các đường và khoảng trống. (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  265).
                                                                                                  : The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128 line pattern which specifies alternating lengths of lines and gaps. (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  265).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  266: Offset dòng
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128 (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  034). Nó rất hữu ích cho việc tạo hình ảnh động cạnh.
                                                                                                  : The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128 line offset (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  034). It is useful for creating edge animations.

                                                                                                Dốc

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  269: Màu sắc của độ dốc dừng (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  111).
                                                                                                  : The colours of the gradient stops (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  111).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  271: Vị trí của độ dốc dừng (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  113). Nếu không được chỉ định (hoặc không hợp lệ), các điểm dừng sẽ chia đều.
                                                                                                  : The positions of the gradient stops (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  113). If not specified (or invalid), the stops will divide equally.

                                                                                                Các cạnh Bezier

                                                                                                Đối với các cạnh bezier tự động, đi kèm (

                                                                                                <script type="module">
                                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                                script>
                                                                                                
                                                                                                57, bản demo):

                                                                                                Một cạnh bezier được bó với tất cả các cạnh bezier song song khác. Mỗi cạnh bezier là một đường cong bezier bậc hai, được tách ra với các đường cong khác bằng cách thay đổi độ cong. Nếu có một số lượng lẻ các cạnh song song trong một gói, thì cạnh trung tâm được vẽ dưới dạng một đường thẳng.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  274: Dọc theo đường vuông góc từ nguồn này sang mục tiêu khác, giá trị này chỉ định khoảng cách giữa các cạnh bezier liên tiếp.
                                                                                                  : Along the line perpendicular from source to target, this value specifies the distance between successive bezier edges.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  275: Một giá trị duy nhất ghi đè
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  274 với giá trị thủ công. Bởi vì nó ghi đè kích thước bước, các cạnh bezier có cùng giá trị sẽ trùng nhau. Do đó, tốt nhất là sử dụng giá trị này như một giá trị một lần cho các cạnh cụ thể nếu cần.
                                                                                                  : A single value that overrides
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  274 with a manual value. Because it overrides the step size, bezier edges with the same value will overlap. Thus, it’s best to use this as a one-off value for particular edges if need be.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  277: Một giá trị duy nhất có trọng số các điểm kiểm soát dọc theo dòng từ nguồn này sang mục tiêu. Giá trị thường nằm trong [0, 1], với 0 về phía nút nguồn và 1 về phía nút đích - nhưng các giá trị lớn hơn hoặc nhỏ hơn cũng có thể được sử dụng.
                                                                                                  : A single value that weights control points along the line from source to target. The value usually ranges on [0, 1], with 0 towards the source node and 1 towards the target node — but larger or smaller values can also be used.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  96: Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (mặc định), dòng từ nguồn này sang mục tiêu cho
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  277 là từ bên ngoài hình dạng của nút nguồn đến bên ngoài hình dạng nút đích. Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, dòng là từ vị trí nguồn đến vị trí đích. Tùy chọn
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 giúp các điểm cạnh tính dễ dàng hơn - nhưng nó nên được sử dụng cẩn thận vì bạn có thể tạo các điểm không hợp lệ mà
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 sẽ tự động sửa chữa.
                                                                                                  : With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (default), the line from source to target for
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  277 is from the outside of the source node’s shape to the outside of the target node’s shape. With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, the line is from the source position to the target position. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 option makes calculating edge points easier — but it should be used carefully because you can create invalid points that
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 would have automatically corrected.

                                                                                                Các cạnh vòng

                                                                                                Đối với các vòng lặp (nghĩa là cùng một nguồn và mục tiêu, demo):

                                                                                                Một vòng lặp thường được vẽ dưới dạng một cặp đường cong cầu bậc hai, một bezier đi ra khỏi nút và bezier thứ hai quay trở lại nút.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  284: Xác định góc các vòng lặp mở rộng từ nút trong các trường hợp khi nút nguồn và mục tiêu của một cạnh là như nhau. Góc được chỉ định từ vị trí 12 giờ và nó tiến triển theo chiều kim đồng hồ để tăng các giá trị dương. Mặc định là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  285 (mở rộng sang phía trên bên trái).
                                                                                                  : Determines the angle that loops extend from the node in cases when the source and target node of an edge is the same. The angle is specified from the 12 o’clock position and it progresses clockwise for increasing positive values. The default is
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  285 (extending to the upper left).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  286: Xác định góc giữa các cạnh để lại và trả về trong các vòng. Các giá trị dương dẫn đến vòng lặp theo chiều kim đồng hồ và giá trị âm dẫn đến vòng lặp ngược chiều kim đồng hồ. Mặc định là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  287.
                                                                                                  : Determines the angle between the leaving and returning edges in loops. Positive values result in clockwise looping and negative values result in counter-clockwise looping. Default is
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  287.

                                                                                                Lưu ý rằng các vòng lặp chỉ có thể là

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                239 hoặc
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                240 cho
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                235 của chúng.

                                                                                                Các cạnh bezier không được trang bị

                                                                                                Đối với các cạnh bezier với các điểm điều khiển thủ công (

                                                                                                <script type="module">
                                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                                script>
                                                                                                
                                                                                                59, bản demo):

                                                                                                Một cạnh bezier không được xử lý được làm bằng một loạt một hoặc nhiều đường cong bezier bậc hai - một điểm điều khiển trên mỗi đường cong. Các điểm điều khiển của các đường cong bezier không được xử lý được chỉ định bằng tay, sử dụng hệ thống phối hợp so với nút nguồn và mục tiêu. Điều này duy trì hình dạng đường cong tổng thể bất kể vị trí của các nút được kết nối.

                                                                                                Một đường cong bezier bậc hai được chỉ định bởi ba điểm. Những điểm đó bao gồm điểm bắt đầu (P0), điểm điều khiển trung tâm (P1) và điểm cuối (P2). Theo truyền thống, tất cả ba điểm được gọi là điểm kiểm soát của người dùng, nhưng chỉ có điểm kiểm soát trung tâm (P1) được gọi là điểm kiểm soát trên mạng trong tài liệu này cho sự ngắn gọn và rõ ràng.

                                                                                                Điểm bắt đầu (P0) cho đường cong bezier bậc hai đầu tiên trong chuỗi được chỉ định bởi

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                292. Điểm cuối (P2) cho đường cong bezier bậc hai cuối cùng trong chuỗi được chỉ định bởi
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                293.

                                                                                                Khi hai hoặc nhiều điểm điều khiển được chỉ định cho một cạnh bezier không được xử lý, mỗi cặp đường cong bezier liền kề được nối ở điểm giữa của hai điểm điều khiển. Nói cách khác, điểm bắt đầu (P0) và điểm cuối (P2) cho một đường cong bezier bậc hai ở giữa loạt được đặt ngầm. Điều này làm cho hầu hết các đường cong tham gia trơn tru.

                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  60: Một loạt các giá trị chỉ định cho từng điểm điều khiển khoảng cách vuông góc với một dòng được hình thành từ nguồn này sang mục tiêu, ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  295.
                                                                                                  : A series of values that specify for each control point the distance perpendicular to a line formed from source to target, e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  295.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  61: Một loạt các giá trị có trọng số các điểm kiểm soát dọc theo một dòng từ nguồn này sang mục tiêu, ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  297. Một giá trị thường nằm trên [0, 1], với 0 về phía nút nguồn và 1 về phía nút đích - nhưng các giá trị lớn hơn hoặc nhỏ hơn cũng có thể được sử dụng.
                                                                                                  : A series of values that weights control points along a line from source to target, e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  297. A value usually ranges on [0, 1], with 0 towards the source node and 1 towards the target node — but larger or smaller values can also be used.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  96: Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (mặc định), dòng từ nguồn này sang mục tiêu cho
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  61 là từ bên ngoài hình dạng của nút nguồn đến bên ngoài hình dạng nút đích. Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, dòng là từ vị trí nguồn đến vị trí đích. Tùy chọn
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 giúp các điểm cạnh tính dễ dàng hơn - nhưng nó nên được sử dụng cẩn thận vì bạn có thể tạo các điểm không hợp lệ mà
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 sẽ tự động sửa chữa.
                                                                                                  : With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (default), the line from source to target for
                                                                                                  <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  61 is from the outside of the source node’s shape to the outside of the target node’s shape. With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, the line is from the source position to the target position. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 option makes calculating edge points easier — but it should be used carefully because you can create invalid points that
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 would have automatically corrected.

                                                                                                Haystack cạnh

                                                                                                Đối với các cạnh nhanh, đường thẳng (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                304, bản demo):

                                                                                                Các cạnh cỏ khô là một sự thay thế hiệu suất hơn cho các cạnh thẳng, thẳng. Một cạnh cỏ khô được vẽ dưới dạng một đường thẳng từ nút nguồn đến nút đích, được đặt ngẫu nhiên dọc theo một số góc từ mỗi trung tâm nút nút. Theo cách này, nhiều cạnh cỏ khô song song tạo ra một bó chặt chẽ, đặc biệt là khi semitransarent. Điều này làm cho Haystack cạnh một cách hiệu quả để trực quan hóa các biểu đồ với số lượng lớn các cạnh song song.

                                                                                                Các cạnh vòng và các nút cha mẹ hợp chất không được hỗ trợ bởi các cạnh Haystack. Cũng lưu ý rằng các mũi tên nguồn và mục tiêu không được hỗ trợ cho các cạnh cỏ khô, vì các mũi tên sẽ ở phía sau thân nút. Mũi tên giữa, tuy nhiên, được hỗ trợ.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  305: Bao gồm giá trị từ 0 đến 1 cho biết bán kính tương đối được sử dụng để định vị các cạnh cỏ khô trên các nút được kết nối của chúng. Bên ngoài của nút ở mức 1 và tâm của nút ở mức 0. Đối với các biểu đồ đơn giản, bán kính 0 có ý nghĩa.
                                                                                                  : A value between 0 and 1 inclusive that indicates the relative radius used to position haystack edges on their connected nodes. The outside of the node is at 1, and the centre of the node is at 0. For simple graphs, a radius of 0 makes sense.

                                                                                                Phân đoạn cạnh

                                                                                                Đối với các cạnh được làm bằng một số đường thẳng (

                                                                                                <script type="module">
                                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                                script>
                                                                                                
                                                                                                62, bản demo):

                                                                                                Một cạnh phân đoạn được tạo thành từ một loạt một hoặc nhiều đường thẳng, sử dụng hệ thống phối hợp so với các nút nguồn và mục tiêu. Điều này duy trì mô hình dòng tổng thể bất kể định hướng của các vị trí của các nút nguồn và mục tiêu.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  307: Một loạt các giá trị chỉ định cho từng điểm phân đoạn khoảng cách vuông góc với một dòng được hình thành từ nguồn này sang mục tiêu, ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  295.
                                                                                                  : A series of values that specify for each segment point the distance perpendicular to a line formed from source to target, e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  295.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  309: Một loạt các giá trị có trọng số các điểm theo một dòng từ nguồn này sang mục tiêu, ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  297. Một giá trị thường nằm trên [0, 1], với 0 về phía nút nguồn và 1 về phía nút đích - nhưng các giá trị lớn hơn hoặc nhỏ hơn cũng có thể được sử dụng.
                                                                                                  : A series of values that weights segment points along a line from source to target, e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  297. A value usually ranges on [0, 1], with 0 towards the source node and 1 towards the target node — but larger or smaller values can also be used.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  96: Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (mặc định), dòng từ nguồn này sang mục tiêu cho
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  309 là từ bên ngoài hình dạng của nút nguồn đến bên ngoài hình dạng nút đích. Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, dòng là từ vị trí nguồn đến vị trí đích. Tùy chọn
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 giúp các điểm cạnh tính dễ dàng hơn - nhưng nó nên được sử dụng cẩn thận vì bạn có thể tạo các điểm không hợp lệ mà
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 sẽ tự động sửa chữa.
                                                                                                  : With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (default), the line from source to target for
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  309 is from the outside of the source node’s shape to the outside of the target node’s shape. With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, the line is from the source position to the target position. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 option makes calculating edge points easier — but it should be used carefully because you can create invalid points that
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 would have automatically corrected.

                                                                                                Cạnh thẳng

                                                                                                Đối với các cạnh đường thẳng (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                317, bản demo):

                                                                                                Một cạnh thẳng (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                317) được vẽ dưới dạng một đường thẳng từ bên ngoài hình dạng nút nguồn sang bên ngoài hình dạng nút đích. Điểm cuối và mũi tên trung điểm được hỗ trợ trên các cạnh thẳng. Các cạnh thẳng thường không phù hợp cho nhiều lần.

                                                                                                Các cạnh hình tam giác thẳng

                                                                                                Đối với các cạnh tam giác thẳng (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                319, bản demo):

                                                                                                Một cạnh hình tam giác thẳng (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                319) được vẽ dưới dạng một tam giác cân thẳng duy nhất theo hướng từ nguồn đến mục tiêu, với đế tam giác ở nguồn và đỉnh tam giác (một điểm) ở mục tiêu.

                                                                                                Thuộc tính

                                                                                                <script type="module">
                                                                                                import cytoscape from "./cytoscape.esm.min.js";
                                                                                                script>
                                                                                                
                                                                                                90 Xác định chiều rộng của cơ sở tam giác. Thuộc tính
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                249,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                253,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                263,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                266 không được hỗ trợ.

                                                                                                Taxi cạnh

                                                                                                Đối với các cạnh phân cấp, đi kèm (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                326, bản demo):

                                                                                                Một cạnh taxi (

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                326) được rút ra dưới dạng một loạt các đường thẳng phải (nghĩa là trong hình học taxi). Các cạnh có hướng chính dọc theo trục x hoặc trục y, có thể được sử dụng để bó các cạnh trong hệ thống phân cấp. Đó là, các cạnh taxi phù hợp với cây và dag được đặt theo cách phân cấp.

                                                                                                Một cạnh taxi có nhiều nhất hai lượt có thể nhìn thấy: bắt đầu từ nút nguồn, cạnh đi theo hướng chính cho khoảng cách được chỉ định. Các cạnh sau đó quay, đi về phía mục tiêu dọc theo trục thứ cấp. Bước đầu tiên có thể được chỉ định để gói các cạnh của các nút đi. Quay thứ hai là tiềm ẩn, dựa trên lượt thứ nhất, đi khoảng cách còn lại dọc theo trục chính.

                                                                                                Khi một cạnh taxi không thể vẽ theo kế hoạch rẽ thường xuyên-tức là một hoặc nhiều lượt quá gần nguồn hoặc mục tiêu-nó được định tuyến lại. Việc định tuyến lại được thực hiện trên cơ sở hiệu quả tốt nhất: định tuyến lại ưu tiên hướng được chỉ định cho gói trong khoảng cách rẽ được chỉ định. Ví dụ, một cạnh

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                328 sẽ tránh đi theo hướng đi lên nếu có thể. Trong thực tế, việc định tuyến lại không nên diễn ra cho các biểu đồ được đặt ra tốt.

                                                                                                Chỉ các điểm cuối

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                329 được hỗ trợ cho một cạnh taxi, tức là
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                330 và
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                331.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  332: Hướng chính của cạnh, hướng bắt đầu từ nút nguồn; Có thể là một trong số:
                                                                                                  : The main direction of the edge, the direction starting out from the source node; may be one of:
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    190: Tự động sử dụng
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    334 hoặc
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    335, dựa trên khoảng cách dọc hay ngang lớn nhất.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    334: Tự động sử dụng
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    328 hoặc
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    338, dựa trên hướng thẳng đứng từ nguồn này sang mục tiêu khác.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    328: Gói người ra xuống xuống.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    338: Gói người ra đi lên trên.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    335: Tự động sử dụng
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    342 hoặc
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    343, dựa trên hướng ngang từ nguồn này sang mục tiêu khác.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    344: BUNDLE OUTLEERS RIGHINGDING.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    343: Người đi bộ đóng gói trái.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  346: Khoảng cách dọc theo trục chính nơi áp dụng lượt đầu tiên.
                                                                                                  : The distance along the primary axis where the first turn is applied.
                                                                                                  • Giá trị này có thể là một khoảng cách tuyệt đối (ví dụ:
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    228) hoặc nó có thể là khoảng cách tương đối giữa nguồn và mục tiêu (ví dụ:
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    134).
                                                                                                  • Một giá trị âm có thể được chỉ định để chỉ ra khoảng cách trong oppostite, mục tiêu theo hướng nguồn (ví dụ:
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    349).
                                                                                                  • Lưu ý rằng gói có thể không hoạt động với hướng rõ ràng (
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    338,
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    328,
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    343 hoặc
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    344) song song với khoảng cách rẽ được chỉ định theo đơn vị phần trăm.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  354: Khoảng cách tối thiểu dọc theo trục chính được duy trì giữa các nút và lượt.
                                                                                                  : The minimum distance along the primary axis that is maintained between the nodes and the turns.
                                                                                                  • Giá trị này chỉ có các giá trị tuyệt đối (ví dụ:
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    355).
                                                                                                  • Tài sản này làm cho cạnh taxi được định tuyến lại khi các lượt sẽ quá gần với nguồn hoặc mục tiêu. Như vậy, nó cũng giúp tránh các mũi tên điểm cuối cạnh chồng chéo.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  96: với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (mặc định), khoảng cách (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  346 và
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  354) được xem xét từ bên ngoài giới hạn nguồn của nguồn vào bên ngoài giới hạn của mục tiêu. Với giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, khoảng cách được xem xét từ vị trí nguồn đến vị trí đích. Tùy chọn
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 giúp các điểm cạnh tính dễ dàng hơn - nhưng nó nên được sử dụng cẩn thận vì bạn có thể tạo các điểm không hợp lệ mà
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 sẽ tự động sửa chữa.
                                                                                                  : With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 (default), the distances (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  346 and
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  354) are considered from the outside of the source’s bounds to the outside of the target’s bounds. With value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281, the distances are considered from the source position to the target position. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  281 option makes calculating edge points easier — but it should be used carefully because you can create invalid points that
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  279 would have automatically corrected.

                                                                                                Mũi tên cạnh

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  363: Màu của mũi tên nguồn cạnh.
                                                                                                  : The colour of the edge’s source arrow.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  364: Hình dạng của mũi tên nguồn cạnh (demo); Có thể là một trong số:
                                                                                                  : The shape of the edge’s source arrow (demo); may be one of:
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    076
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    366
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    367
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    368
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    369
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    098
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    371
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    256
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    373
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    084
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    375
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    196
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  377: Trạng thái điền của mũi tên nguồn cạnh; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  378 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  379.
                                                                                                  : The fill state of the edge’s source arrow; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  378 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  379.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  380: tỷ lệ cho kích thước mũi tên; Có thể là bất kỳ số nào> = 0.
                                                                                                  : Scaling for the arrow size; may be any number >= 0.

                                                                                                Đối với mỗi thuộc tính mũi tên ở trên, hãy thay thế

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                381 bằng một trong những

                                                                                                • cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  76: Chỉ về phía nút nguồn, ở cuối cạnh.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  383: Chỉ về phía nút nguồn, ở giữa rìa.
                                                                                                • cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  77: Chỉ về phía nút đích, ở cuối cạnh.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  385: Chỉ về phía nút mục tiêu, ở giữa rìa.

                                                                                                Chỉ có mũi tên giữa được hỗ trợ trên các cạnh haystack.

                                                                                                Điểm cuối cạnh

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                292 &
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                293: Chỉ định điểm cuối của phía nguồn của cạnh và phía mục tiêu của cạnh, tương ứng. Có một số tùy chọn cho cách các thuộc tính đó có thể được đặt:

                                                                                                • Một giá trị đặc biệt, được đặt tên có thể được sử dụng.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    329 (mặc định) chỉ ra rằng cạnh phải được đặt tự động để hướng về vị trí của nút và được đặt ở bên ngoài hình dạng nút.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    389 sử dụng các quy tắc tương tự như
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    329 với quy tắc được thêm vào rằng nếu nhãn nút Node sẽ giao với cạnh trước thân nút của nút, thì cạnh chỉ vào điểm giao nhau đó. Điều này tránh sự chồng chéo của các cạnh với nhãn nút.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    391 chỉ ra cạnh sẽ đi tất cả các cách bên trong nút và chỉ trực tiếp vào vị trí của nút. Điều này giống như chỉ định
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    392.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    393 chỉ ra điểm cuối cạnh phải được đặt bên ngoài hình dạng nút, nơi nó sẽ giao nhau với đường tưởng tượng từ vị trí nguồn đến vị trí đích. Giá trị này rất hữu ích để tự động tránh các trường hợp không hợp lệ cho các cạnh bezier, đặc biệt là với các nút ghép.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    394 sử dụng các quy tắc tương tự như
                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    393 với quy tắc được thêm vào rằng nếu nhãn nút Node sẽ giao nhau với đường tưởng tượng trước thân nút của nút, thì cạnh chỉ vào điểm giao nhau đó. Điều này tránh sự chồng chéo của các cạnh với nhãn nút.
                                                                                                • Hai số có thể chỉ định điểm cuối. Các số biểu thị một vị trí so với vị trí của nút. Các số có thể được chỉ định là giá trị phần trăm (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  134, tương ứng với chiều rộng và chiều cao của nút) hoặc là khoảng cách tuyệt đối (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  397 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  035).
                                                                                                • Một giá trị góc đơn (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  399 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  400) có thể chỉ định rằng điểm cuối nên được đặt trên đường viền nút ở góc được chỉ định. Góc bắt đầu lúc 12 giờ và tiến triển theo chiều kim đồng hồ.

                                                                                                Các điểm cuối cho các cạnh có thể được chuyển ra khỏi nút nguồn và mục tiêu:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  401: Một giá trị chuyển cạnh ra khỏi nút nguồn (mặc định
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  402).
                                                                                                  : A value that shifts the edge away from the source node (default
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  402).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  403: Một giá trị chuyển cạnh ra khỏi nút đích (mặc định
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  402).
                                                                                                  : A value that shifts the edge away from the target node (default
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  402).

                                                                                                Sửa đổi điểm cuối không được hỗ trợ cho các cạnh

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                304 vì lý do hiệu suất.

                                                                                                Hiển thị

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  406: Có hiển thị phần tử; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  407 cho hiển thị hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 cho không được hiển thị.
                                                                                                  : Whether to display the element; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  407 for displayed or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 for not displayed.
                                                                                                  • Một phần tử
                                                                                                    <script type="module">
                                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                                    script>
                                                                                                    
                                                                                                    07 không chiếm không gian.
                                                                                                    • Một cạnh được đóng gói
                                                                                                      <script type="module">
                                                                                                      import cytoscape from "./cytoscape.esm.min.js";
                                                                                                      script>
                                                                                                      
                                                                                                      07 không chiếm không gian trong gói của nó.
                                                                                                    • Một nút
                                                                                                      <script type="module">
                                                                                                      import cytoscape from "./cytoscape.esm.min.js";
                                                                                                      script>
                                                                                                      
                                                                                                      07 ẩn các cạnh được kết nối của nó.
                                                                                                    • Một nút
                                                                                                      <script type="module">
                                                                                                      import cytoscape from "./cytoscape.esm.min.js";
                                                                                                      script>
                                                                                                      
                                                                                                      07 được coi là một điểm chứ không phải là một khu vực trong bố cục, ảnh hưởng đến những thứ như tránh chồng chéo.
                                                                                                    • Một yếu tố
                                                                                                      <script type="module">
                                                                                                      import cytoscape from "./cytoscape.esm.min.js";
                                                                                                      script>
                                                                                                      
                                                                                                      07 không được xem xét để phù hợp với chế độ xem.
                                                                                                  • Một phần tử
                                                                                                    <script type="module">
                                                                                                    import cytoscape from "./cytoscape.esm.min.js";
                                                                                                    script>
                                                                                                    
                                                                                                    07 không tương tác.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  415: có thể nhìn thấy phần tử hay không; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  416 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  417.
                                                                                                  : Whether the element is visible; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  416 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  417.
                                                                                                  • Một phần tử
                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    96 không chiếm không gian.
                                                                                                    • Một
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      96 Bundled Bezier Edge chiếm không gian trong gói của nó.
                                                                                                    • Một nút
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      96 không ẩn các cạnh được kết nối.
                                                                                                    • Một yếu tố
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      96 được coi là bình thường bằng bố cục.
                                                                                                    • Một yếu tố
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      96 được xem xét để phù hợp với chế độ xem.
                                                                                                  • Một phần tử
                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    96 không tương tác.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  93: Độ mờ của phần tử, từ 0 đến 1. Lưu ý rằng độ mờ của cha mẹ nút hợp chất ảnh hưởng đến độ mờ hiệu quả của trẻ em.
                                                                                                  : The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.
                                                                                                  • Một phần tử
                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    98 không chiếm không gian.
                                                                                                    • Một
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      98 Bundled Bezier Edge chiếm không gian trong gói của nó.
                                                                                                    • Một nút
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      98 không ẩn các cạnh được kết nối.
                                                                                                    • Một yếu tố
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      98 được coi là bình thường bởi bố cục.
                                                                                                    • Một yếu tố
                                                                                                      import cytoscape from 'cytoscape';
                                                                                                      
                                                                                                      98 được xem xét để phù hợp với chế độ xem.
                                                                                                  • Một phần tử
                                                                                                    import cytoscape from 'cytoscape';
                                                                                                    
                                                                                                    98 là tương tác.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431: Một giá trị số nguyên ảnh hưởng đến thứ tự vẽ tương đối của các phần tử. Nói chung, một phần tử có
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 cao hơn sẽ được vẽ trên đỉnh của một phần tử có
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 thấp hơn. Lưu ý rằng các cạnh nằm dưới các nút mặc dù
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431, ngoại trừ khi cần thiết cho các nút ghép.
                                                                                                  : An integer value that affects the relative draw order of elements. In general, an element with a higher
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 will be drawn on top of an element with a lower
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431. Note that edges are under nodes despite
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431, except when necessary for compound nodes.

                                                                                                Các phần tử được vẽ theo một thứ tự cụ thể dựa trên độ sâu của hợp chất (thấp đến cao), loại phần tử (thường là các nút trên các cạnh) và chỉ số z (thấp đến cao). Những phong cách này ảnh hưởng đến việc đặt hàng:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  435: có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  436,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  437,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 (mặc định) hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  439. Bản vẽ đầu tiên là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  436, thứ hai là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  437, có cùng độ sâu với gốc của biểu đồ hợp chất, tiếp theo là mặc định là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 rút ra thứ tự sâu từ gốc đến lá của đồ thị hợp chất. Bản vẽ cuối cùng là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  439. Nó thường không có ý nghĩa để đặt giá trị này cho các biểu đồ không hợp nhất.
                                                                                                  : May be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  436,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  437,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 (default), or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  439. The first drawn is
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  436, the second is
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  437, which is the same depth as the root of the compound graph, followed by the default of
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 which draws in depth order from root to leaves of the compound graph. The last drawn is
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  439. It does not usually make sense to set this value for non-compound graphs.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  444: có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 (mặc định) hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  446. Cài đặt
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 vẽ các cạnh dưới các nút, trong khi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  446 bỏ qua quy ước này và chỉ dựa trên giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431.
                                                                                                  : May be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 (default) or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  446. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 setting draws edges under nodes, whereas
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  446 ignores this convention and draws solely based on the
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 value.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431: Một giá trị số nguyên ảnh hưởng đến thứ tự vẽ tương đối của các phần tử. Nói chung, một phần tử có
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 cao hơn sẽ được vẽ trên đỉnh của một phần tử có
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 thấp hơn trong cùng một độ sâu.
                                                                                                  : An integer value that affects the relative draw order of elements. In general, an element with a higher
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 will be drawn on top of an element with a lower
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  431 within the same depth.

                                                                                                Nhãn

                                                                                                Nhãn văn bản:

                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  93: Văn bản để hiển thị cho nhãn phần tử (demo).
                                                                                                  : The text to display for an element’s label (demo).
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  95: Văn bản để hiển thị cho nhãn Nguồn Edge.
                                                                                                  : The text to display for an edge’s source label.
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  97: Văn bản để hiển thị cho nhãn mục tiêu Edge Edge.
                                                                                                  : The text to display for an edge’s target label.

                                                                                                Kiểu dáng phông chữ cơ bản:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  456: màu của nhãn phần tử.
                                                                                                  : The colour of the element’s label.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  457: Độ mờ của văn bản nhãn, bao gồm cả phác thảo của nó.
                                                                                                  : The opacity of the label text, including its outline.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  458: Một danh sách các tên phông chữ được phân tách bằng dấu phẩy để sử dụng trên văn bản nhãn.
                                                                                                  : A comma-separated list of font names to use on the label text.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  459: Kích thước của văn bản nhãn.
                                                                                                  : The size of the label text.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  460: Kiểu phông chữ CSS được áp dụng cho văn bản nhãn.
                                                                                                  : A CSS font style to be applied to the label text.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  461: Trọng lượng phông chữ CSS được áp dụng cho văn bản nhãn.
                                                                                                  : A CSS font weight to be applied to the label text.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  462: Một chuyển đổi để áp dụng cho văn bản nhãn; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  464 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  465.
                                                                                                  : A transformation to apply to the label text; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  464, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  465.

                                                                                                Văn bản gói:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  466: Kiểu gói để áp dụng cho văn bản nhãn; Có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 không có gói (bao gồm các dòng mới thủ công:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  468),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  469 cho thủ công và/hoặc tự động, hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  470 để cắt chuỗi và nối vào ’dựa trên
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  471. Lưu ý rằng với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  469, văn bản sẽ luôn bao bọc trên các dòng mới (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  468) và văn bản có thể bọc trên bất kỳ ký tự nào có thể phá vỡ-bao gồm cả không gian không có chiều rộng (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  474).
                                                                                                  : A wrapping style to apply to the label text; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 for no wrapping (including manual newlines:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  468),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  469 for manual and/or autowrapping, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  470 to truncate the string and append ‘…’ based on
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  471. Note that with
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  469, text will always wrap on newlines (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  468) and text may wrap on any breakable whitespace character — including zero-width spaces (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  474).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  471: Chiều rộng tối đa cho văn bản được bọc, được áp dụng khi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  466 được đặt thành
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  469 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  470. Chỉ có các dòng mới thủ công (nghĩa là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  468), hãy đặt một giá trị rất lớn như
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  480 sao cho chỉ các ký tự dòng mới của bạn sẽ được áp dụng.
                                                                                                  : The maximum width for wrapped text, applied when
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  466 is set to
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  469 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  470. For only manual newlines (i.e.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  468), set a very large value like
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  480 such that only your newline characters would apply.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  481: Các ký tự có thể được sử dụng cho các vị trí gói có thể khi một dòng tràn
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  471; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  483 (mặc định) hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  484. Lưu ý rằng
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  484 phù hợp với CJK, nơi các nhân vật ở trong lưới và không có khoảng trắng nào tồn tại. Ví dụ, sử dụng
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  484 với văn bản trong bảng chữ cái Latin, sẽ phân chia các từ tại các vị trí tùy ý.
                                                                                                  : The characters that may be used for possible wrapping locations when a line overflows
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  471; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  483 (default) or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  484. Note that
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  484 is suited to CJK, where the characters are in a grid and no whitespace exists. Using
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  484 with text in the Latin alphabet, for example, will split words at arbitrary locations.
                                                                                                • ________ 1487 **: Sự biện minh của các nhãn đa dòng (được bọc); có thể là
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  51,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  489,
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  52 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 (mặc định). Giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  190 làm cho nó để nhãn nút Node được chứng minh dọc theo nút - ví dụ: Một nhãn ở phía bên phải của một nút được để hợp lý.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  493: Chiều cao dòng của văn bản đa dòng, như một giá trị tương đối, không đơn vị. Nó chỉ định khoảng cách thẳng đứng giữa mỗi dòng. Với giá trị
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  89 (mặc định), các dòng được xếp trực tiếp trên đầu nhau mà không có khoảng trắng bổ sung giữa chúng. Ví dụ, với giá trị
                                                                                                  npm install cytoscape
                                                                                                  
                                                                                                  43, có khoảng trắng giữa mỗi dòng bằng chiều cao nhìn thấy của một dòng văn bản.
                                                                                                  : The line height of multiline text, as a relative, unitless value. It specifies the vertical spacing between each line. With value
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  89 (default), the lines are stacked directly on top of one another with no additional whitespace between them. With value
                                                                                                  npm install cytoscape
                                                                                                  
                                                                                                  43, for example, there is whitespace between each line equal to the visible height of a line of text.

                                                                                                Căn chỉnh nhãn nút:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  496: Căn chỉnh dọc của nhãn nút Node; Có thể có giá trị
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  51,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  489 hoặc
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  52.
                                                                                                  : The vertical alignment of a node’s label; may have value
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  51,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  489, or
                                                                                                  #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  52.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  500: Căn chỉnh dọc của nhãn nút Node; Có thể có giá trị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  439,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  489 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  436.
                                                                                                  : The vertical alignment of a node’s label; may have value
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  439,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  489, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  436.

                                                                                                Căn chỉnh nhãn cạnh:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  504: Đối với nhãn nguồn của một cạnh, nên đặt nút nguồn bao xa.
                                                                                                  : For the source label of an edge, how far from the source node the label should be placed.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  505: Đối với nhãn mục tiêu của một cạnh, cách nút mục tiêu bao xa, nhãn nên được đặt.
                                                                                                  : For the target label of an edge, how far from the target node the label should be placed.

                                                                                                Margins:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  506: Biên độ thay đổi nhãn dọc theo trục x.
                                                                                                  : A margin that shifts the label along the x-axis.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  507: Biên độ thay đổi nhãn dọc theo trục y.
                                                                                                  : A margin that shifts the label along the y-axis.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  508: (cho nhãn nguồn của một cạnh.)
                                                                                                  : (For the source label of an edge.)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  509: (Đối với nhãn nguồn của một cạnh.)
                                                                                                  : (For the source label of an edge.)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  510: (Đối với nhãn đích của cạnh.)
                                                                                                  : (For the target label of an edge.)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  511: (Đối với nhãn đích của cạnh.)
                                                                                                  : (For the target label of an edge.)

                                                                                                Văn bản xoay:

                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  92: Một góc xoay được áp dụng cho nhãn.
                                                                                                  : A rotation angle that is applied to the label.
                                                                                                • Xoay theo chiều kim đồng hồ.
                                                                                                • Đối với các cạnh, giá trị đặc biệt
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  513 có thể được sử dụng để căn chỉnh nhãn vào cạnh.
                                                                                                • Đối với các nút, nhãn được xoay dọc theo điểm neo của nó trên nút, do đó, biên nhãn có thể giúp cho một số cơ sở sử dụng.
                                                                                                • Giá trị đặc biệt
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  196 có thể được sử dụng để biểu thị
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  515.
                                                                                                • Xoay hoạt động tốt nhất với văn bản từ trái sang phải.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  516: (cho nhãn nguồn của cạnh.)
                                                                                                  : (For the source label of an edge.)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  517: (Đối với nhãn đích của cạnh.)
                                                                                                  : (For the target label of an edge.)

                                                                                                Outline:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  518: Màu sắc của phác thảo xung quanh văn bản nhãn phần tử.
                                                                                                  : The colour of the outline around the element’s label text.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  519: Độ mờ của phác thảo trên văn bản nhãn.
                                                                                                  : The opacity of the outline on label text.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  520: Kích thước của phác thảo trên văn bản nhãn.
                                                                                                  : The size of the outline on label text.

                                                                                                Background:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  521: Một màu để áp dụng trên nền văn bản.
                                                                                                  : A colour to apply on the text background.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  522: Độ mờ của nền nhãn; Bối cảnh được vô hiệu hóa cho
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  25 (giá trị mặc định).
                                                                                                  : The opacity of the label background; the background is disabled for
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  25 (default value).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  524: Hình dạng để sử dụng cho nền nhãn, có thể là ____101078 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  079.
                                                                                                  : The shape to use for the label background, can be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  078 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  079.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  527: Một phần đệm trên nền của nhãn (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  355); Không có đệm được sử dụng theo mặc định.
                                                                                                  : A padding on the background of the label (e.g
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  355); zero padding is used by default.

                                                                                                Border:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  529: chiều rộng của đường viền xung quanh nhãn; đường viền được vô hiệu hóa cho
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  25 (giá trị mặc định).
                                                                                                  : The width of the border around the label; the border is disabled for
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  25 (default value).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  531: Chiều rộng của đường viền xung quanh nhãn.
                                                                                                  : The width of the border around the label.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  532: Phong cách của biên giới xung quanh nhãn; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  127,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  129.
                                                                                                  : The style of the border around the label; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  107,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  127,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  128, or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  129.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  537: Màu sắc của đường viền xung quanh nhãn.
                                                                                                  : The colour of the border around the label.

                                                                                                Interactivity:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  538: Nếu thu phóng làm cho kích thước phông chữ hiệu quả của nhãn nhỏ hơn thế này, thì không có nhãn nào được hiển thị. Lưu ý rằng vì tối ưu hóa hiệu suất, nhãn có thể được hiển thị ở kích thước phông chữ nhỏ hơn một chút so với giá trị này. Hiệu ứng này rõ rệt hơn ở tỷ lệ pixel màn hình lớn hơn. Tuy nhiên, người ta đảm bảo rằng nhãn sẽ được hiển thị ở các kích thước bằng hoặc lớn hơn giá trị được chỉ định.
                                                                                                  : If zooming makes the effective font size of the label smaller than this, then no label is shown. Note that because of performance optimisations, the label may be shown at font sizes slightly smaller than this value. This effect is more pronounced at larger screen pixel ratios. However, it is guaranteed that the label will be shown at sizes equal to or greater than the value specified.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  539: liệu các sự kiện có xảy ra trên một phần tử hay không nếu nhãn nhận được một sự kiện; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183. Bạn có thể muốn một kiểu được áp dụng cho văn bản trên
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005 để bạn biết văn bản có thể kích hoạt.
                                                                                                  : Whether events should occur on an element if the label receives an event; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183. You may want a style applied to the text on
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005 so you know the text is activatable.

                                                                                                Sự kiện

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  543: liệu các sự kiện có nên xảy ra trên một phần tử hay không (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  544,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  545, v.v.); có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183. Đối với
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183, phần tử không nhận được sự kiện và sự kiện chỉ đơn giản là chuyển qua Core/Viewport. Thuộc tính
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  543 là phần tử, vì vậy giá trị của cha mẹ ghép không ảnh hưởng đến con cái.
                                                                                                  : Whether events should occur on an element (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  544,
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  545, etc.); may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183. For
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183, the element receives no events and events simply pass through to the core/viewport. The
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  543 property is per-element, so the value of a compound parent does not affect its children.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  539: liệu các sự kiện có xảy ra trên một phần tử hay không nếu nhãn nhận được một sự kiện; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183. Bạn có thể muốn một kiểu được áp dụng cho văn bản trên
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005 để bạn biết văn bản có thể kích hoạt.
                                                                                                  : Whether events should occur on an element if the label receives an event; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183. You may want a style applied to the text on
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  005 so you know the text is activatable.

                                                                                                Lớp phủ

                                                                                                Các thuộc tính này cho phép tạo các lớp phủ trên đầu các nút hoặc cạnh và thường được sử dụng ở trạng thái

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                005.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  555: Màu của lớp phủ.
                                                                                                  : The colour of the overlay.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  556: Khu vực bên ngoài phần tử trong đó lớp phủ được hiển thị.
                                                                                                  : The area outside of the element within which the overlay is shown.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  557: Độ mờ của lớp phủ.
                                                                                                  : The opacity of the overlay.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  558: Hình dạng của lớp phủ nút; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  079 (mặc định),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  075. Không áp dụng cho các cạnh.
                                                                                                  : The shape of the node overlay; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  079 (default),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  075. Doesn’t apply to edges.

                                                                                                Underlay

                                                                                                Các thuộc tính này cho phép tạo ra các lớp lót đằng sau các nút hoặc cạnh và thường được sử dụng ở trạng thái nổi bật.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  561: Màu sắc của lớp lót.
                                                                                                  : The colour of the underlay.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  562: Khu vực bên ngoài phần tử trong đó lớp lót được hiển thị.
                                                                                                  : The area outside of the element within which the underlay is shown.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  563: Độ mờ của lớp lót.
                                                                                                  : The opacity of the underlay.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  564: Hình dạng của nút lót; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  079 (mặc định),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  075. Không áp dụng cho các cạnh.
                                                                                                  : The shape of the node underlay; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  079 (default),
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  075. Doesn’t apply to edges.

                                                                                                Con ma

                                                                                                Các thuộc tính ma cho phép tạo hiệu ứng ma, một bản sao bán trong suốt của phần tử được rút ra ở một phần bù.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  567: Có sử dụng hiệu ứng ma; có thể là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183.
                                                                                                  : Whether to use the ghost effect; may be
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  182 or
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  183.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  570: Độ lệch ngang được sử dụng để định vị hiệu ứng ma.
                                                                                                  : The horizontal offset used to position the ghost effect.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  571: Độ lệch dọc được sử dụng để định vị hiệu ứng ma.
                                                                                                  : The vertical offset used to position the ghost effect.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  572: Độ mờ của hiệu ứng ma.
                                                                                                  : The opacity of the ghost effect.

                                                                                                Chuyển đổi hoạt hình

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  573: Danh sách các thuộc tính phong cách được phân tách không gian để sinh động trong trạng thái này.
                                                                                                  : A space-separated list of style properties to animate in this state.
                                                                                                • <script type="module">
                                                                                                  import cytoscape from "./cytoscape.esm.min.js";
                                                                                                  script>
                                                                                                  
                                                                                                  91: Độ dài của quá trình chuyển đổi (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  575).
                                                                                                  : The length of the transition (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  575).
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  576: Độ dài của độ trễ trước khi chuyển tiếp (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  038).
                                                                                                  : The length of the delay before the transition occurs (e.g.
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  038).
                                                                                                • var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  49: Một chức năng nới lỏng điều khiển đường cong tiến trình hoạt hình; Có thể là một trong những giá trị sau. Một hình dung của việc nới lỏng phục vụ như một tài liệu tham khảo.
                                                                                                  : An easing function that controls the animation progress curve; may be one of the following values. A visualisation of easings serves as a reference.
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    579 (mặc định),
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    580
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    581 (một bản demo có chi tiết cho các giá trị tham số),
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    582,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    583,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    584,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    585,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    586,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    587,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    588,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    589,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    590,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    591,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    592,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    593,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    594,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    595,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    596,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    597,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    598,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    599,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    600,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    601,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    602,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    603,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    604,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    605,
                                                                                                  • .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    606.

                                                                                                Cốt lõi

                                                                                                Các thuộc tính này ảnh hưởng đến UI Global vào biểu đồ và chỉ áp dụng cho lõi. Bạn có thể sử dụng chuỗi chọn

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                607 đặc biệt để đặt các thuộc tính này.

                                                                                                Indicator:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  608: Màu của chỉ báo được hiển thị khi nền bị người dùng lấy.
                                                                                                  : The colour of the indicator shown when the background is grabbed by the user.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  609: Độ mờ của chỉ báo nền hoạt động.
                                                                                                  : The opacity of the active background indicator.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  610: Kích thước của chỉ báo nền hoạt động.
                                                                                                  : The size of the active background indicator.

                                                                                                Hộp lựa chọn:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  611: Màu nền của hộp lựa chọn được sử dụng để lựa chọn kéo.
                                                                                                  : The background colour of the selection box used for drag selection.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  612: Màu của đường viền trên hộp chọn.
                                                                                                  : The colour of the border on the selection box.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  613: Kích thước của đường viền trên hộp chọn.
                                                                                                  : The size of the border on the selection box.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  614: Độ mờ của hộp lựa chọn.
                                                                                                  : The opacity of the selection box.

                                                                                                Kết cấu trong các cử chỉ chế độ xem:

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  615: Màu của khu vực bên ngoài kết cấu Viewport khi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  616.
                                                                                                  : The colour of the area outside the viewport texture when
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  616.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  617: Độ mờ của khu vực bên ngoài kết cấu Viewport.
                                                                                                  : The opacity of the area outside the viewport texture.

                                                                                                Sự kiện

                                                                                                Đối tượng sự kiện

                                                                                                Các sự kiện được truyền cho các cuộc gọi lại Handler tương tự như các đối tượng sự kiện jQuery và các sự kiện tổng hợp phản ứng ở chỗ chúng kết thúc các đối tượng sự kiện bản địa, bắt chước API của chúng.

                                                                                                Fields:

                                                                                                • cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  60: tham chiếu đến thể hiện lõi tương ứng
                                                                                                • cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  77: Cho biết phần tử hoặc lõi đầu tiên gây ra sự kiện
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  620: Chuỗi loại sự kiện (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  621)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  622: Chuỗi không gian tên sự kiện (ví dụ:
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  623 cho
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  624)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  625: Thời gian sự kiện của Unix Epoch in Milliseconds

                                                                                                Các trường chỉ cho sự kiện thiết bị đầu vào của người dùng:

                                                                                                • #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  10: Cho biết vị trí mô hình của sự kiện
                                                                                                • #cy {
                                                                                                    width: 300px;
                                                                                                    height: 300px;
                                                                                                    display: block;
                                                                                                  }
                                                                                                  
                                                                                                  11: Cho biết vị trí được hiển thị của sự kiện
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  628: Đối tượng sự kiện đầu vào người dùng ban đầu

                                                                                                Các trường chỉ cho các sự kiện bố cục:

                                                                                                • cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  67: Cho biết bố cục tương ứng đã kích hoạt sự kiện (hữu ích nếu chạy nhiều bố cục đồng thời)

                                                                                                Sự kiện sủi bọt

                                                                                                Tất cả các sự kiện xảy ra trên các yếu tố được sủi bọt lên với cha mẹ hỗn hợp và sau đó đến cốt lõi. Bạn phải xem xét điều này khi lắng nghe cốt lõi để bạn có thể phân biệt giữa các sự kiện xảy ra trên nền và các sự kiện xảy ra trên các yếu tố. Sử dụng trường

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                630, cho biết người khởi tạo sự kiện (tức là
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                631).

                                                                                                Sự kiện thiết bị đầu vào của người dùng

                                                                                                Đây là những sự kiện trình duyệt bình thường mà bạn có thể nghe qua cytoscape.js. Bạn có thể nghe những sự kiện này trên cốt lõi và trên các bộ sưu tập.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  632: nhấn nút chuột
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  633: Khi nút chuột được phát hành
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  634: Sau
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  632 sau đó
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  633
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  545: Khi con trỏ được đặt lên trên mục tiêu
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  638: Khi con trỏ được di chuyển khỏi mục tiêu
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  639: Khi con trỏ được di chuyển ở đâu đó trên đầu mục tiêu
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  640: Khi một hoặc nhiều ngón tay bắt đầu chạm vào màn hình
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  641: Khi một hoặc nhiều ngón tay được di chuyển trên màn hình
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  642: Khi một hoặc nhiều ngón tay bị loại bỏ khỏi màn hình

                                                                                                Ngoài ra còn có một số sự kiện cấp cao hơn mà bạn có thể sử dụng để bạn không phải nghe các sự kiện khác nhau cho các thiết bị đầu vào chuột và các thiết bị cảm ứng.

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  643 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  644: Sự kiện bắt đầu nhấn bình thường hóa (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  632 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  640)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  647 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  648: Sự kiện di chuyển được chuẩn hóa (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  641 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  639)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  651: Bình thường hóa sự kiện phần tử (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  641 hoặc ________ 1639/________ 1545)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  655: Bình thường hóa sự kiện phần tử (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  641 hoặc ________ 1639/________ 1638)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  659 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  660: Sự kiện kết thúc Tap được chuẩn hóa (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  633 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  642)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  544 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  664: Sự kiện nhấn bình thường hóa (
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  634 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  640 sau đó là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  642 mà không cần
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  641)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  669 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  670 hoặc
                                                                                                  cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  49: Sự kiện nhấn bình thường hóa (kích hoạt sau một thời gian debouce nhất định để kiểm tra trước
                                                                                                  cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  48 -
                                                                                                  cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  47: được đặt thành 250ms theo mặc định)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  674 hoặc
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  675 hoặc
                                                                                                  cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  48: Sự kiện nhấn đôi được chuẩn hóa (hai lần tiếp theo
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  634 hoặc hai lần tiếp theo
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  640 sau đó là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  642
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  681: Sự kiện Tap Net được chuẩn hóa
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  682: Nhấp chuột phải bình thường hóa hoặc hai ngón tay
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  643
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  684: Nhấp chuột phải bình thường hóa
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  633 hoặc hai ngón tay
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  659
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  687: Nhấp chuột phải chuẩn hóa hoặc hai ngón tay
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  544
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  689: Mousemove được chuẩn hóa hoặc kéo hai ngón tay sau
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  682 nhưng trước
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  684
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  692: Khi đi qua một nút qua
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  689
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  694: Khi đi ra khỏi một nút qua
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  689
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  696: Khi bắt đầu lựa chọn hộp
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  697: Khi kết thúc lựa chọn hộp
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  698: Được kích hoạt trên các phần tử khi được chọn bởi lựa chọn hộp
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  699: Được kích hoạt trên các phần tử khi bên trong hộp trên
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  697

                                                                                                Sự kiện thu thập

                                                                                                Những sự kiện này là tùy chỉnh cho cytoscape.js. Bạn có thể nghe những sự kiện này cho các bộ sưu tập.

                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  16: Khi một phần tử được thêm vào biểu đồ
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  15: Khi một phần tử bị xóa khỏi biểu đồ
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  17: Khi một phần tử được di chuyển W.R.T. Cấu trúc liên kết
                                                                                                  • Các nút: Khi hợp chất
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    74 được thay đổi
                                                                                                  • Các cạnh: Khi
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    76 hoặc
                                                                                                    cytoscape({
                                                                                                    
                                                                                                      container: document.getElementById('cy'),
                                                                                                    
                                                                                                      elements: [ // flat array of nodes and edges
                                                                                                        { // node n1
                                                                                                          group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                          // NB the group field can be automatically inferred for you but specifying it
                                                                                                          // gives you nice debug messages if you mis-init elements
                                                                                                    
                                                                                                    
                                                                                                          data: { // element data (put json serialisable dev data here)
                                                                                                            id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                            parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                            // (`parent` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          // scratchpad data (usually temp or nonserialisable data)
                                                                                                          scratch: {
                                                                                                            _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                          },
                                                                                                    
                                                                                                          position: { // the model position of the node (optional on init, mandatory after)
                                                                                                            x: 100,
                                                                                                            y: 100
                                                                                                          },
                                                                                                    
                                                                                                          selected: false, // whether the element is selected (default false)
                                                                                                    
                                                                                                          selectable: true, // whether the selection state is mutable (default true)
                                                                                                    
                                                                                                          locked: false, // when locked a node's position is immutable (default false)
                                                                                                    
                                                                                                          grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                    
                                                                                                          pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                    
                                                                                                          classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                    
                                                                                                          // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                          // USE THE STYLESHEET INSTEAD
                                                                                                          style: { // style property overrides 
                                                                                                            'background-color': 'red'
                                                                                                          }
                                                                                                        },
                                                                                                    
                                                                                                        { // node n2
                                                                                                          data: { id: 'n2' },
                                                                                                          renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                        },
                                                                                                    
                                                                                                        { // node n3
                                                                                                          data: { id: 'n3', parent: 'nparent' },
                                                                                                          position: { x: 123, y: 234 }
                                                                                                        },
                                                                                                    
                                                                                                        { // node nparent
                                                                                                          data: { id: 'nparent' }
                                                                                                        },
                                                                                                    
                                                                                                        { // edge e1
                                                                                                          data: {
                                                                                                            id: 'e1',
                                                                                                            // inferred as an edge because `source` and `target` are specified:
                                                                                                            source: 'n1', // the source node id (edge comes from this node)
                                                                                                            target: 'n2'  // the target node id (edge goes to this node)
                                                                                                            // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                          },
                                                                                                    
                                                                                                          pannable: true // whether dragging on the edge causes panning
                                                                                                        }
                                                                                                      ],
                                                                                                    
                                                                                                      layout: {
                                                                                                        name: 'preset'
                                                                                                      },
                                                                                                    
                                                                                                      // so we can see the ids
                                                                                                      style: [
                                                                                                        {
                                                                                                          selector: 'node',
                                                                                                          style: {
                                                                                                            'label': 'data(id)'
                                                                                                          }
                                                                                                        }
                                                                                                      ]
                                                                                                    
                                                                                                    });
                                                                                                    
                                                                                                    77 được thay đổi
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  707: Khi một phần tử được chọn
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  708: Khi một phần tử không được chọn
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  709: Khi một phần tử được chọn bởi một cử chỉ vòi
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  710: Khi một phần tử không được chọn bởi một vòi ở nơi khác
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  698: Được kích hoạt trên các phần tử khi được chọn bởi lựa chọn hộp
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  699: Được kích hoạt trên các phần tử khi bên trong hộp trên
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  697
                                                                                                • Sự kiện thu thập
                                                                                                • Những sự kiện này là tùy chỉnh cho cytoscape.js. Bạn có thể nghe những sự kiện này cho các bộ sưu tập.
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  16: Khi một phần tử được thêm vào biểu đồ
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  15: Khi một phần tử bị xóa khỏi biểu đồ
                                                                                                • <script src="cytoscape.min.js">script>
                                                                                                  
                                                                                                  17: Khi một phần tử được di chuyển W.R.T. Cấu trúc liên kết
                                                                                                • Các nút: Khi hợp chất
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  74 được thay đổi
                                                                                                • Các cạnh: Khi
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  76 hoặc
                                                                                                  cytoscape({
                                                                                                  
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: [ // flat array of nodes and edges
                                                                                                      { // node n1
                                                                                                        group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                        // NB the group field can be automatically inferred for you but specifying it
                                                                                                        // gives you nice debug messages if you mis-init elements
                                                                                                  
                                                                                                  
                                                                                                        data: { // element data (put json serialisable dev data here)
                                                                                                          id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                          parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                          // (`parent` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        // scratchpad data (usually temp or nonserialisable data)
                                                                                                        scratch: {
                                                                                                          _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                        },
                                                                                                  
                                                                                                        position: { // the model position of the node (optional on init, mandatory after)
                                                                                                          x: 100,
                                                                                                          y: 100
                                                                                                        },
                                                                                                  
                                                                                                        selected: false, // whether the element is selected (default false)
                                                                                                  
                                                                                                        selectable: true, // whether the selection state is mutable (default true)
                                                                                                  
                                                                                                        locked: false, // when locked a node's position is immutable (default false)
                                                                                                  
                                                                                                        grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                  
                                                                                                        pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                  
                                                                                                        classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                  
                                                                                                        // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                        // USE THE STYLESHEET INSTEAD
                                                                                                        style: { // style property overrides 
                                                                                                          'background-color': 'red'
                                                                                                        }
                                                                                                      },
                                                                                                  
                                                                                                      { // node n2
                                                                                                        data: { id: 'n2' },
                                                                                                        renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                      },
                                                                                                  
                                                                                                      { // node n3
                                                                                                        data: { id: 'n3', parent: 'nparent' },
                                                                                                        position: { x: 123, y: 234 }
                                                                                                      },
                                                                                                  
                                                                                                      { // node nparent
                                                                                                        data: { id: 'nparent' }
                                                                                                      },
                                                                                                  
                                                                                                      { // edge e1
                                                                                                        data: {
                                                                                                          id: 'e1',
                                                                                                          // inferred as an edge because `source` and `target` are specified:
                                                                                                          source: 'n1', // the source node id (edge comes from this node)
                                                                                                          target: 'n2'  // the target node id (edge goes to this node)
                                                                                                          // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                        },
                                                                                                  
                                                                                                        pannable: true // whether dragging on the edge causes panning
                                                                                                      }
                                                                                                    ],
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'preset'
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  
                                                                                                  });
                                                                                                  
                                                                                                  77 được thay đổi
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  707: Khi một phần tử được chọn
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  708: Khi một phần tử không được chọn
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  709: Khi một phần tử được chọn bởi một cử chỉ vòi
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  710: Khi một phần tử không được chọn bởi một vòi ở nơi khác
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  714: Khi một phần tử bị khóa
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  715: Khi một phần tử được mở khóa
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  716: Khi một phần tử được lấy trực tiếp (chỉ bao gồm một nút trực tiếp dưới con trỏ hoặc ngón tay người dùng)

                                                                                                .side-line { display: inline-block; border-top: 1px solid black; width: 20%; } .triangle { display: inline-block; height: 7px; width: 7px; transform: rotate(45deg); transform-origin: center center; border-top: 1px solid black; border-left: 1px solid black; margin: 0 -3px -3px; } 717: Khi một phần tử bị lấy (bao gồm tất cả các phần tử sẽ bị kéo)

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                718: Khi một phần tử được lấy và sau đó di chuyển

                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  719: Khi một yếu tố được giải phóng (tức là hãy từ bỏ khỏi bị lấy)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  720: Khi một phần tử được giải phóng trực tiếp (chỉ bao gồm một nút trực tiếp dưới con trỏ hoặc ngón tay người dùng)
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  721: Khi một phần tử được giải phóng sau khi bị kéo (tức là
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  717 thì
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  718 thì
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  719)
                                                                                                • var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  22: Khi một ví dụ mới của cytoscape.js đã sẵn sàng để được tương tác với
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  738: Khi ví dụ của cytoscape.js đã bị phá hủy rõ ràng bằng cách gọi
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  739.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  740: Khi chế độ xem được hiển thị
                                                                                                • cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  27: Khi chế độ xem
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  742: Khi chế độ xem được đăng thông qua việc kéo
                                                                                                • cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  23: Khi chế độ xem được phóng to
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  744: Khi chế độ xem được phóng to thông qua cử chỉ chụm. Sự kiện này chỉ được hỗ trợ cho các trình duyệt hỗ trợ sự kiện Gesturechange hoặc Touch Event. Các trình duyệt khác sẽ bắn sự kiện
                                                                                                  .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  745.
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  745: Khi chế độ xem được phóng to qua bánh xe cuộn
                                                                                                • .side-line {
                                                                                                      display: inline-block;
                                                                                                      border-top: 1px solid black;
                                                                                                      width: 20%;
                                                                                                  }
                                                                                                  
                                                                                                  .triangle {
                                                                                                      display: inline-block;
                                                                                                      height: 7px;
                                                                                                      width: 7px;
                                                                                                      transform: rotate(45deg);
                                                                                                      transform-origin: center center;
                                                                                                      border-top: 1px solid black;
                                                                                                      border-left: 1px solid black;
                                                                                                      margin: 0 -3px -3px;
                                                                                                  }
                                                                                                  
                                                                                                  747: Khi chế độ xem được thay đổi (nghĩa là từ
                                                                                                  cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  27,
                                                                                                  cytoscape({
                                                                                                    container: document.getElementById('cy'),
                                                                                                  
                                                                                                    elements: {
                                                                                                      nodes: [
                                                                                                        {
                                                                                                          data: { id: 'a' }
                                                                                                        },
                                                                                                  
                                                                                                        {
                                                                                                          data: { id: 'b' }
                                                                                                        }
                                                                                                      ],
                                                                                                      edges: [
                                                                                                        {
                                                                                                          data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                        }
                                                                                                      ]
                                                                                                    },
                                                                                                  
                                                                                                    layout: {
                                                                                                      name: 'grid',
                                                                                                      rows: 1
                                                                                                    },
                                                                                                  
                                                                                                    // so we can see the ids
                                                                                                    style: [
                                                                                                      {
                                                                                                        selector: 'node',
                                                                                                        style: {
                                                                                                          'label': 'data(id)'
                                                                                                        }
                                                                                                      }
                                                                                                    ]
                                                                                                  });
                                                                                                  
                                                                                                  23 hoặc từ cả hai khi phóng to về một điểm-ví dụ: Pinch-to-Zoom)
                                                                                                • var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  44: Khi chế độ xem được thay đổi kích thước (thường bằng cách gọi
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  40, thay đổi kích thước
                                                                                                  var a = cy.$('#a'); // assume a compound node
                                                                                                  
                                                                                                  // the neighbourhood of `a` contains directly connected elements
                                                                                                  var directlyConnected = a.neighborhood();
                                                                                                  
                                                                                                  // you may want everything connected to its descendants instead
                                                                                                  // because the descendants "belong" to `a`
                                                                                                  var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                  
                                                                                                  43 hoặc chuyển đổi một lớp trên div cytoscape.js)

                                                                                                Bố cục

                                                                                                Hàm của bố cục là đặt các vị trí trên các nút trong biểu đồ. Bố cục là các phần mở rộng của cytoscape.js sao cho bất kỳ ai có thể viết bố cục mà không cần sửa đổi thư viện.

                                                                                                Một số bố cục được bao gồm với cytoscape.js theo mặc định và các tùy chọn của chúng được mô tả trong các phần tiếp theo với các giá trị mặc định được chỉ định. Lưu ý rằng bạn phải đặt

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                56 thành tên của bố cục để chỉ định cái bạn muốn chạy.

                                                                                                Mỗi bố cục có thuật toán riêng để đặt vị trí cho mỗi nút. Thuật toán này ảnh hưởng đến hình dạng tổng thể của biểu đồ và độ dài của các cạnh. Một thuật toán bố cục có thể được tùy chỉnh bằng cách đặt các tùy chọn của nó. Do đó, độ dài cạnh có thể được kiểm soát bằng cách đặt các tùy chọn bố cục một cách thích hợp.

                                                                                                Đối với bố cục (vật lý) hướng đến lực, thường có một tùy chọn để đặt trọng lượng cho mỗi cạnh để ảnh hưởng đến độ dài cạnh tương đối. Chiều dài cạnh cũng có thể bị ảnh hưởng bởi các tùy chọn như các yếu tố khoảng cách, góc và tránh chồng chéo. Cài đặt chiều dài cạnh phụ thuộc vào bố cục cụ thể và một số bố cục sẽ cho phép độ dài cạnh chính xác hơn so với các cách khác.

                                                                                                Một bố cục chạy trên sơ đồ con mà bạn chỉ định. Tất cả các phần tử trong biểu đồ được sử dụng cho

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                76. Tập hợp con được chỉ định của các phần tử được sử dụng cho
                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                77. Trong cả hai trường hợp, trạng thái của mỗi phần tử không ảnh hưởng đến liệu phần tử có được xem xét trong bố cục hay không. Ví dụ, một nút vô hình được định vị lại bởi một bố cục nếu nút được bao gồm trong tập hợp tập hợp các phần tử. Bạn có thể sử dụng
                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                77 để giải quyết các trường hợp sử dụng phức tạp, như chạy một bố cục khác nhau trên mỗi thành phần.

                                                                                                Khi chạy một thể hiện không đầu, bạn có thể cần chỉ định

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                757 để chỉ ra bố cục khu vực có thể đặt các nút. Trong một trường hợp được kết xuất, các giới hạn có thể được suy ra bởi kích thước của phần tử HTML DOM
                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                03.

                                                                                                Tham khảo blog để biết hướng dẫn bố trí chuyên sâu.

                                                                                                vô giá trị

                                                                                                Bố cục

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                11 đặt tất cả các nút ở (0, 0). Nó rất hữu ích cho mục đích gỡ lỗi.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                29

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                30

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                31

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                32

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                33

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                34

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                35

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                đặt trước

                                                                                                Bố cục

                                                                                                cytoscape({
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: {
                                                                                                    nodes: [
                                                                                                      {
                                                                                                        data: { id: 'a' }
                                                                                                      },
                                                                                                
                                                                                                      {
                                                                                                        data: { id: 'b' }
                                                                                                      }
                                                                                                    ],
                                                                                                    edges: [
                                                                                                      {
                                                                                                        data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                      }
                                                                                                    ]
                                                                                                  },
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'grid',
                                                                                                    rows: 1
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                });
                                                                                                
                                                                                                20 đặt các nút ở các vị trí bạn chỉ định thủ công.

                                                                                                Lưới

                                                                                                Tùy chọn

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                36

                                                                                                ngẫu nhiên

                                                                                                Bố cục

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                760 đặt các nút ở vị trí ngẫu nhiên trong chế độ xem.

                                                                                                layout.run()       

                                                                                                Bí danh:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                772,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                772,

                                                                                                Bắt đầu chạy bố cục.

                                                                                                Thông tin chi tiết

                                                                                                Nếu bố cục không đồng bộ (tức là liên tục), thì hãy gọi

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                57 chỉ đơn giản là bắt đầu bố cục. Bố cục đồng bộ (nghĩa là rời rạc) kết thúc trước khi
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                57 trả về. Bất cứ khi nào bố cục được bắt đầu, sự kiện
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                734 được phát ra.

                                                                                                Bố cục sẽ phát ra sự kiện

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                736 khi nó kết thúc hoặc đã bị dừng (ví dụ: bằng cách gọi
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                777). Nhà phát triển có thể nghe
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                736 bằng cách sử dụng
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                779 hoặc đặt các tùy chọn bố cục một cách thích hợp với một cuộc gọi lại.

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                37

                                                                                                layout.stop()   

                                                                                                Ngừng chạy bố cục (không đồng bộ/rời rạc).

                                                                                                Thông tin chi tiết

                                                                                                Nếu bố cục không đồng bộ (tức là liên tục), thì hãy gọi

                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                57 chỉ đơn giản là bắt đầu bố cục. Bố cục đồng bộ (nghĩa là rời rạc) kết thúc trước khi
                                                                                                var a = cy.$('#a'); // assume a compound node
                                                                                                
                                                                                                // the neighbourhood of `a` contains directly connected elements
                                                                                                var directlyConnected = a.neighborhood();
                                                                                                
                                                                                                // you may want everything connected to its descendants instead
                                                                                                // because the descendants "belong" to `a`
                                                                                                var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                
                                                                                                57 trả về. Bất cứ khi nào bố cục được bắt đầu, sự kiện
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                734 được phát ra.

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                38

                                                                                                Ngừng chạy bố cục (không đồng bộ/rời rạc).

                                                                                                layout.on()                   

                                                                                                Gọi

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                777 dừng bố cục không đồng bộ (liên tục). Nó rất hữu ích nếu bạn muốn dừng sớm một bố cục đang chạy.
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                781,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                782,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                783,

                                                                                                Bố cục các sự kiện

                                                                                                Bí danh:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                781,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                782,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                783,events [data]function(event) )

                                                                                                • Nghe các sự kiện được phát ra bởi bố cục.

                                                                                                  A space separated list of event names.

                                                                                                • Layout.on (, & nbsp; sự kiện [, & nbsp; dữ liệu], & nbsp; function (sự kiện)) [optional]

                                                                                                  A plain object which is passed to the handler in the event object argument.

                                                                                                • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                                                                  The handler function that is called when one of the specified events occurs.

                                                                                                  • Dữ liệu [Tùy chọn] Một đối tượng đơn giản được chuyển cho trình xử lý trong đối số đối tượng sự kiện.

                                                                                                    The event object.

                                                                                                layout.promiseOn()           

                                                                                                Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                784,

                                                                                                Sự kiện đối tượng sự kiện.

                                                                                                Bí danh:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                784,events )

                                                                                                • Nghe các sự kiện được phát ra bởi bố cục.

                                                                                                  A space separated list of event names.

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                39

                                                                                                layout.one()       

                                                                                                Ngừng chạy bố cục (không đồng bộ/rời rạc).

                                                                                                Gọi

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                777 dừng bố cục không đồng bộ (liên tục). Nó rất hữu ích nếu bạn muốn dừng sớm một bố cục đang chạy.events [data]function(event) )

                                                                                                • Nghe các sự kiện được phát ra bởi bố cục.

                                                                                                  A space separated list of event names.

                                                                                                • Layout.on (, & nbsp; sự kiện [, & nbsp; dữ liệu], & nbsp; function (sự kiện)) [optional]

                                                                                                  A plain object which is passed to the handler in the event object argument.

                                                                                                • Không gian Eventa phân tách danh sách các tên sự kiện.

                                                                                                  The handler function that is called when one of the specified events occurs.

                                                                                                  • Dữ liệu [Tùy chọn] Một đối tượng đơn giản được chuyển cho trình xử lý trong đối số đối tượng sự kiện.

                                                                                                    The event object.

                                                                                                layout.removeListener()                   

                                                                                                Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                785,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                786,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                787,

                                                                                                Sự kiện đối tượng sự kiện.

                                                                                                Bí danh:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                784,events [handler] )

                                                                                                • Nhận một lời hứa được giải quyết khi bố cục phát ra lần đầu tiên trong số các sự kiện được chỉ định.

                                                                                                  bố cục.promiseon (, & nbsp; sự kiện)

                                                                                                • Nghe các sự kiện được phát ra bởi bố cục và chỉ chạy trình xử lý một lần. [optional]

                                                                                                  A reference to the handler function to remove.

                                                                                                layout.removeAllListeners()   

                                                                                                Layout.one (, & nbsp; Events [, & nbsp; Data], & nbsp; function (sự kiện))

                                                                                                layout.emit()           

                                                                                                Bí danh:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                785,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                786,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                787,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                788,

                                                                                                Loại bỏ các trình xử lý sự kiện trên bố cục.

                                                                                                Layout.RemoVelistener (, & nbsp; sự kiện [, & nbsp; Handler]))events [extraParams] )

                                                                                                • sự kiện

                                                                                                  A list of event names to emit (either a space-separated string or an array).

                                                                                                • Một danh sách phân tách không gian của các tên sự kiện. [optional]

                                                                                                  An array of additional parameters to pass to the handler.

                                                                                                Handler [Tùy chọn] Một tham chiếu đến hàm xử lý để xóa.

                                                                                                Loại bỏ tất cả các trình xử lý sự kiện trên bố cục.

                                                                                                Bí danh: .side-line { display: inline-block; border-top: 1px solid black; width: 20%; } .triangle { display: inline-block; height: 7px; width: 7px; transform: rotate(45deg); transform-origin: center center; border-top: 1px solid black; border-left: 1px solid black; margin: 0 -3px -3px; } 788,

                                                                                                ani.play()       

                                                                                                Phát ra một hoặc nhiều sự kiện trên bố cục.

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                791,

                                                                                                bố cục.emit (, & nbsp; các sự kiện [, & nbsp; extraparams]))

                                                                                                Ví dụ

                                                                                                cytoscape({
                                                                                                
                                                                                                  container: document.getElementById('cy'),
                                                                                                
                                                                                                  elements: [ // flat array of nodes and edges
                                                                                                    { // node n1
                                                                                                      group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                      // NB the group field can be automatically inferred for you but specifying it
                                                                                                      // gives you nice debug messages if you mis-init elements
                                                                                                
                                                                                                
                                                                                                      data: { // element data (put json serialisable dev data here)
                                                                                                        id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                        parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                        // (`parent` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      // scratchpad data (usually temp or nonserialisable data)
                                                                                                      scratch: {
                                                                                                        _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                      },
                                                                                                
                                                                                                      position: { // the model position of the node (optional on init, mandatory after)
                                                                                                        x: 100,
                                                                                                        y: 100
                                                                                                      },
                                                                                                
                                                                                                      selected: false, // whether the element is selected (default false)
                                                                                                
                                                                                                      selectable: true, // whether the selection state is mutable (default true)
                                                                                                
                                                                                                      locked: false, // when locked a node's position is immutable (default false)
                                                                                                
                                                                                                      grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                
                                                                                                      pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                
                                                                                                      classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                
                                                                                                      // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                      // USE THE STYLESHEET INSTEAD
                                                                                                      style: { // style property overrides 
                                                                                                        'background-color': 'red'
                                                                                                      }
                                                                                                    },
                                                                                                
                                                                                                    { // node n2
                                                                                                      data: { id: 'n2' },
                                                                                                      renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                    },
                                                                                                
                                                                                                    { // node n3
                                                                                                      data: { id: 'n3', parent: 'nparent' },
                                                                                                      position: { x: 123, y: 234 }
                                                                                                    },
                                                                                                
                                                                                                    { // node nparent
                                                                                                      data: { id: 'nparent' }
                                                                                                    },
                                                                                                
                                                                                                    { // edge e1
                                                                                                      data: {
                                                                                                        id: 'e1',
                                                                                                        // inferred as an edge because `source` and `target` are specified:
                                                                                                        source: 'n1', // the source node id (edge comes from this node)
                                                                                                        target: 'n2'  // the target node id (edge goes to this node)
                                                                                                        // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                      },
                                                                                                
                                                                                                      pannable: true // whether dragging on the edge causes panning
                                                                                                    }
                                                                                                  ],
                                                                                                
                                                                                                  layout: {
                                                                                                    name: 'preset'
                                                                                                  },
                                                                                                
                                                                                                  // so we can see the ids
                                                                                                  style: [
                                                                                                    {
                                                                                                      selector: 'node',
                                                                                                      style: {
                                                                                                        'label': 'data(id)'
                                                                                                      }
                                                                                                    }
                                                                                                  ]
                                                                                                
                                                                                                });
                                                                                                
                                                                                                40

                                                                                                ani.playing()       

                                                                                                Ngừng chạy bố cục (không đồng bộ/rời rạc).

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                792,

                                                                                                Gọi

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                777 dừng bố cục không đồng bộ (liên tục). Nó rất hữu ích nếu bạn muốn dừng sớm một bố cục đang chạy.

                                                                                                Bố cục các sự kiện et al              

                                                                                                Bí danh:

                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                781,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                782,
                                                                                                .side-line {
                                                                                                    display: inline-block;
                                                                                                    border-top: 1px solid black;
                                                                                                    width: 20%;
                                                                                                }
                                                                                                
                                                                                                .triangle {
                                                                                                    display: inline-block;
                                                                                                    height: 7px;
                                                                                                    width: 7px;
                                                                                                    transform: rotate(45deg);
                                                                                                    transform-origin: center center;
                                                                                                    border-top: 1px solid black;
                                                                                                    border-left: 1px solid black;
                                                                                                    margin: 0 -3px -3px;
                                                                                                }
                                                                                                
                                                                                                783,

                                                                                                ani.progress()

                                                                                                Nghe các sự kiện được phát ra bởi bố cục.

                                                                                                  Layout.on (, & nbsp; sự kiện [, & nbsp; dữ liệu], & nbsp; function (sự kiện))progress )

                                                                                                  Không gian Eventa phân tách danh sách các tên sự kiện.

                                                                                                  • Dữ liệu [Tùy chọn] Một đối tượng đơn giản được chuyển cho trình xử lý trong đối số đối tượng sự kiện.

                                                                                                    The progress in percent (i.e. between 0 and 1 inclusive) to set to the animation.

                                                                                                  ani.time()

                                                                                                  Chức năng (sự kiện) Hàm người xử lý được gọi là khi một trong các sự kiện được chỉ định xảy ra.

                                                                                                    Sự kiện đối tượng sự kiện.time )

                                                                                                    Bí danh:

                                                                                                    .side-line {
                                                                                                        display: inline-block;
                                                                                                        border-top: 1px solid black;
                                                                                                        width: 20%;
                                                                                                    }
                                                                                                    
                                                                                                    .triangle {
                                                                                                        display: inline-block;
                                                                                                        height: 7px;
                                                                                                        width: 7px;
                                                                                                        transform: rotate(45deg);
                                                                                                        transform-origin: center center;
                                                                                                        border-top: 1px solid black;
                                                                                                        border-left: 1px solid black;
                                                                                                        margin: 0 -3px -3px;
                                                                                                    }
                                                                                                    
                                                                                                    784,

                                                                                                    • Nhận một lời hứa được giải quyết khi bố cục phát ra lần đầu tiên trong số các sự kiện được chỉ định.

                                                                                                      The progress in milliseconds (i.e. between 0 and the duration inclusive) to set to the animation.

                                                                                                    ani.rewind()

                                                                                                    bố cục.promiseon (, & nbsp; sự kiện)

                                                                                                      ani.fastforward()

                                                                                                      Nghe các sự kiện được phát ra bởi bố cục và chỉ chạy trình xử lý một lần.

                                                                                                      Ví dụ

                                                                                                      cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      41

                                                                                                      ani.pause()   

                                                                                                      Layout.one (, & nbsp; Events [, & nbsp; Data], & nbsp; function (sự kiện))

                                                                                                      Ví dụ

                                                                                                      cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      42

                                                                                                      ani.stop()   

                                                                                                      Bí danh:

                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      785,
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      786,
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      787,

                                                                                                      Thông tin chi tiết

                                                                                                      Loại bỏ các trình xử lý sự kiện trên bố cục.

                                                                                                      Layout.RemoVelistener (, & nbsp; sự kiện [, & nbsp; Handler]))

                                                                                                      Ví dụ

                                                                                                      cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      43

                                                                                                      ani.completed()       

                                                                                                      Bí danh:

                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      797,
                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      797,

                                                                                                      Nhận được liệu hoạt hình đã tiến tới cuối cùng.

                                                                                                      ani.apply()   

                                                                                                      Áp dụng hoạt hình theo tiến trình hiện tại của nó.

                                                                                                      Thông tin chi tiết

                                                                                                      Chức năng này cho phép bạn bước trực tiếp đến một tiến trình cụ thể của hoạt hình trong khi nó dừng lại.

                                                                                                      Ví dụ

                                                                                                      cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      44

                                                                                                      ani.applying()   

                                                                                                      Nhận liệu hoạt hình hiện đang áp dụng.

                                                                                                      ani.reverse()   

                                                                                                      Đảo ngược hoạt hình sao cho điều kiện bắt đầu và điều kiện kết thúc của nó bị đảo ngược.

                                                                                                      Ví dụ

                                                                                                      cytoscape({
                                                                                                      
                                                                                                        container: document.getElementById('cy'),
                                                                                                      
                                                                                                        elements: [ // flat array of nodes and edges
                                                                                                          { // node n1
                                                                                                            group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                            // NB the group field can be automatically inferred for you but specifying it
                                                                                                            // gives you nice debug messages if you mis-init elements
                                                                                                      
                                                                                                      
                                                                                                            data: { // element data (put json serialisable dev data here)
                                                                                                              id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                              parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                              // (`parent` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            // scratchpad data (usually temp or nonserialisable data)
                                                                                                            scratch: {
                                                                                                              _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                            },
                                                                                                      
                                                                                                            position: { // the model position of the node (optional on init, mandatory after)
                                                                                                              x: 100,
                                                                                                              y: 100
                                                                                                            },
                                                                                                      
                                                                                                            selected: false, // whether the element is selected (default false)
                                                                                                      
                                                                                                            selectable: true, // whether the selection state is mutable (default true)
                                                                                                      
                                                                                                            locked: false, // when locked a node's position is immutable (default false)
                                                                                                      
                                                                                                            grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                      
                                                                                                            pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                      
                                                                                                            classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                      
                                                                                                            // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                            // USE THE STYLESHEET INSTEAD
                                                                                                            style: { // style property overrides 
                                                                                                              'background-color': 'red'
                                                                                                            }
                                                                                                          },
                                                                                                      
                                                                                                          { // node n2
                                                                                                            data: { id: 'n2' },
                                                                                                            renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                          },
                                                                                                      
                                                                                                          { // node n3
                                                                                                            data: { id: 'n3', parent: 'nparent' },
                                                                                                            position: { x: 123, y: 234 }
                                                                                                          },
                                                                                                      
                                                                                                          { // node nparent
                                                                                                            data: { id: 'nparent' }
                                                                                                          },
                                                                                                      
                                                                                                          { // edge e1
                                                                                                            data: {
                                                                                                              id: 'e1',
                                                                                                              // inferred as an edge because `source` and `target` are specified:
                                                                                                              source: 'n1', // the source node id (edge comes from this node)
                                                                                                              target: 'n2'  // the target node id (edge goes to this node)
                                                                                                              // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                            },
                                                                                                      
                                                                                                            pannable: true // whether dragging on the edge causes panning
                                                                                                          }
                                                                                                        ],
                                                                                                      
                                                                                                        layout: {
                                                                                                          name: 'preset'
                                                                                                        },
                                                                                                      
                                                                                                        // so we can see the ids
                                                                                                        style: [
                                                                                                          {
                                                                                                            selector: 'node',
                                                                                                            style: {
                                                                                                              'label': 'data(id)'
                                                                                                            }
                                                                                                          }
                                                                                                        ]
                                                                                                      
                                                                                                      });
                                                                                                      
                                                                                                      45

                                                                                                      ani.promise()           

                                                                                                      Nhận một lời hứa được thực hiện với sự kiện hoạt hình được chỉ định.

                                                                                                      ani.promise()

                                                                                                      Nhận một lời hứa được thực hiện với sự kiện

                                                                                                      .side-line {
                                                                                                          display: inline-block;
                                                                                                          border-top: 1px solid black;
                                                                                                          width: 20%;
                                                                                                      }
                                                                                                      
                                                                                                      .triangle {
                                                                                                          display: inline-block;
                                                                                                          height: 7px;
                                                                                                          width: 7px;
                                                                                                          transform: rotate(45deg);
                                                                                                          transform-origin: center center;
                                                                                                          border-top: 1px solid black;
                                                                                                          border-left: 1px solid black;
                                                                                                          margin: 0 -3px -3px;
                                                                                                      }
                                                                                                      
                                                                                                      798 tiếp theo.

                                                                                                        ani.promise (, & nbsp; animationevent)animationEvent )

                                                                                                        Nhận một lời hứa được thực hiện với sự kiện hoạt hình được chỉ định.

                                                                                                        • Nhận một lời hứa được thực hiện với sự kiện
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          798 tiếp theo.

                                                                                                          A string for the event name;

                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          798 or
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          800 for completing the animation or
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          801 for the next frame of the animation.

                                                                                                        Ví dụ

                                                                                                        ani.promise (, & nbsp; animationevent)

                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        46

                                                                                                        Chuỗi hoạt hình cho tên sự kiện;

                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        798 hoặc
                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        800 để hoàn thành hoạt hình hoặc
                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        801 cho khung tiếp theo của hoạt hình.

                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        47

                                                                                                        Khi .side-line { display: inline-block; border-top: 1px solid black; width: 20%; } .triangle { display: inline-block; height: 7px; width: 7px; transform: rotate(45deg); transform-origin: center center; border-top: 1px solid black; border-left: 1px solid black; margin: 0 -3px -3px; } 802 đã cập nhật kiểu phần tử:

                                                                                                        Khi

                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        803 hoàn thành:

                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        48

                                                                                                        Phần mở rộng

                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        49

                                                                                                        Bạn có thể sử dụng tiện ích mở rộng (ví dụ:

                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        804) như sau với
                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        805:

                                                                                                        Sử dụng

                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        85, ví dụ trên sẽ là:

                                                                                                        Các tiện ích mở rộng dưới đây là một danh sách quản lý. Để thêm tiện ích mở rộng của bạn, vui lòng gửi yêu cầu bao gồm URL tiện ích mở rộng của bạn và mô tả một dòng.

                                                                                                        Biểu thị một phần mở rộng của bên thứ nhất, một nhóm được duy trì bởi các nhóm liên quan đến tập đoàn Cytoscape.

                                                                                                        • biểu thị một phần mở rộng của bên thứ ba, một phần được duy trì bởi các nhà phát triển bên ngoài.
                                                                                                        • Tiện ích mở rộng UI
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          807: Cho phép đăng lên khi kéo trên các nút hoặc cạnh.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          808: Tự động cập nhật các vị trí nút dựa trên các quy tắc được chỉ định (ví dụ: chuyển động nút đồng bộ, chuyển động ràng buộc, v.v.)
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          809: Tự động tìm chế độ xem khi các nút được kéo ra bên ngoài giới hạn chế độ xem.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          810: Nhóm trực quan một tập hợp các phần tử thông qua một bộ bong bóng.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          811: Một phần mở rộng để tạo một khung vẽ trên hoặc theo biểu đồ cytoscape. Hữu ích để tùy chỉnh các nút/cạnh, nền vẽ, v.v.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          812: Cho phép trực quan hóa nhanh chóng và tương tác của các mạng tương tác phân tử phân tầng dựa trên nội địa hóa dưới cơ thể hoặc chú thích tùy chỉnh khác.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          813: UI kéo và thả nút hợp chất để thêm và loại bỏ trẻ em
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          814: Menu Nhấp chuột phải truyền thống
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          815: Menu ngữ cảnh tròn cho phép các lệnh một lần xoay trên biểu đồ.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          816: Sử dụng phần tử HTML làm phần thân nút.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          817: UI để chỉnh sửa các uốn cong cạnh (các cạnh phân đoạn và các cạnh bezier)
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          818: Thêm tay cầm vào các nút và cho phép tạo ra các loại cạnh khác nhau
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          819: Cho phép các cạnh kết nối trực quan các cạnh khác, theo mô hình liên kết của dữ liệu.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          820: UI để kết nối các nút với các cạnh.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          821: Bố cục thay đổi kích thước trẻ em để phù hợp với cha mẹ cho dù có bao nhiêu.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          822: Cung cấp API để mở rộng và sụp đổ các nút cha mẹ hợp chất
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          823: Thêm chức năng lưới và chụp vào biểu đồ cytoscape
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          824: UI lựa chọn Lasso
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          825: Đơn giản hóa việc tạo và quản lý các lớp bổ sung trong định dạng SVG, HTML hoặc Canvas với các tiện ích bổ sung để hiển thị các phần tử trên mỗi nút hoặc cạnh.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          826: Cho phép bản đồ tờ rơi được hiển thị bên dưới hình ảnh tế bào học.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          827: Hiển thị biểu đồ cytoscape trên đầu bản đồ MAPBox GL.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          828: Tiện ích xem mắt chim của đồ thị.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          829: Ngăn các nút chồng chéo lên kéo.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          830: Cho phép HTML được chỉ định là nhãn cho các nút.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          831: Một phần mở rộng thay đổi kích thước nút có thể tùy chỉnh cao với giao diện người dùng truyền thống.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          832: Một nút điều khiển thay đổi kích thước nút tối giản.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          833: Các lớp phủ hiển thị các thanh, biểu đồ, tia lửa, tia lửa nhị phân, ký hiệu (dữ liệu phân loại) hoặc boxplots bên cạnh các nút.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          834: Tiện ích UI Panzoom.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          835: Một trình bao bọc cho popper.js cho phép bạn định vị các div liên quan đến các phần tử tế bào học (có thể được sử dụng với tippy.js để tạo các chú giải công cụ).
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          836: Một trình bao bọc cho phép bạn sử dụng QTIP trên các phần tử đồ thị hoặc nền đồ thị.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          837: Thêm các dòng Snap-to-Grid và Grid vào biểu đồ cytoscape.js.

                                                                                                        .side-line { display: inline-block; border-top: 1px solid black; width: 20%; } .triangle { display: inline-block; height: 7px; width: 7px; transform: rotate(45deg); transform-origin: center center; border-top: 1px solid black; border-left: 1px solid black; margin: 0 -3px -3px; } 838: Hỗ trợ hình ảnh trên cytoscape.js.

                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          839: Cho phép người dùng tạo thanh công cụ tùy chỉnh để thêm bên cạnh thể hiện lõi cytoscape.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          841: Bố cục AVSDF. Nó tổ chức các nút trong một vòng tròn và cố gắng giảm thiểu giao cắt cạnh càng nhiều càng tốt.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          842: Bố cục CISE tạo ra các cụm tròn và sử dụng mô phỏng vật lý (thuật toán hướng lực) để tạo khoảng cách giữa các cụm.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          770: Bố cục COSE bằng cách sử dụng với vị trí nút hợp chất nâng cao. COSE Bilkent là bố cục mô phỏng vật lý (định hướng lực) mang lại kết quả cuối gần như hoàn hảo. Tuy nhiên, nó đắt hơn cả
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          768 và
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          845.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          846: Dòng máy lò xo hợp chất với các cổng (COSEP) là thuật toán bố trí dựa trên lực dựa trên COSE (nhúng lò xo hợp chất) để hỗ trợ các ràng buộc cổng trên các biểu đồ hợp chất.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          847: Bố cục lực D3. Nó sử dụng thuật toán mô phỏng vật lý cơ bản (định hướng lực) tạo ra kết quả tốt cho các biểu đồ nhỏ, đơn giản.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          848: Bố cục Dagre cho dag và cây. Nó tổ chức biểu đồ trong một hệ thống phân cấp.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          849: Bộ điều hợp thuật toán bố trí Elk cho cytoscape.js. Nó chứa một số thuật toán bố trí.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          850: Euler là một bố cục nhanh, kích thước tệp nhỏ, lực lượng chất lượng cao (mô phỏng vật lý). Nó là tốt cho các biểu đồ không hợp nhất và nó có hỗ trợ cơ bản cho các biểu đồ hợp chất.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          845: Bố cục FCOSE là phiên bản nhanh hơn của bố cục Cose-Bilkent. Nó hỗ trợ các biểu đồ hợp chất và không tổng hợp, cho kết quả cuối cùng và hiệu suất cao cho bố cục theo hướng lực. Ngoài ra, FCOSE hỗ trợ các ràng buộc do người dùng chỉ định của các loại sau trên các nút: vị trí cố định, căn chỉnh và vị trí tương đối. Nếu bạn muốn sử dụng bố cục theo hướng lực, FCOSE nên là bố cục đầu tiên bạn thử.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          852: Klay là bố cục hoạt động tốt cho hầu hết các loại đồ thị. Nó cho kết quả tốt cho các biểu đồ thông thường, và nó xử lý DAG và đồ thị hợp chất rất độc đáo.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          853: Bố cục mô phỏng vật lý hoạt động đặc biệt tốt trên các biểu đồ phẳng. Nó tương đối nhanh.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          854: Một bố cục cho dữ liệu GWA (Nghiên cứu liên kết trên toàn bộ gen) minh họa các mối quan hệ giữa các lần.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          855: Bố cục mô phỏng vật lý lan truyền (định hướng lực) cố gắng sử dụng tất cả không gian chế độ xem, nhưng nó có thể được cấu hình để tạo ra kết quả chặt chẽ hơn. Nó sử dụng thuật toán COSE ban đầu và nó sử dụng Gansner và North cho giai đoạn lan truyền.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          856: Bố cục mô phỏng vật lý lò xo. Nó là một bố cục vật lý cơ bản (định hướng lực).

                                                                                                        Tiện ích mở rộng API

                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          857: Nhận tất cả các đường dẫn dài nhất, được định hướng.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          858: Thêm các tiện ích sao chép vào cytoscape.js.
                                                                                                        • cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          48: Thêm một sự kiện
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          48 vào cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          861: Thêm chức năng nhập và xuất graphML vào cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          862: Cung cấp các tiện ích bố cục sai lệch để quản lý vị trí của các nút hoặc thành phần mà không cần thông tin bố cục.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          863: Thêm API undo-redo vào cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          864: Thêm API tìm kiếm và làm nổi bật vào cytoscape.js.

                                                                                                        Gói tiện ích

                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          865: Lược đồ JSON cho định dạng biểu đồ JSON cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          866: Gói Node.js hiển thị hình ảnh của biểu đồ cytoscape.js trên máy chủ bằng Puppeteer.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          867: Một giao diện cho cytoscape.js trong f#.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          868: Một thành phần góc 5+ cho cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          869: Một thành phần phản ứng cho trực quan mạng cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          870: Tạo
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          871S và
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          872 được chỉ định với JSX.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          873: Thư viện JavaScript để phân tích các tệp Tệp tương tác đơn giản (SIF).
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          874: Một kiểu đặt trước kiểu dáng cho SBGN.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          875: Chuyển đổi các tệp SBGN dựa trên XML thành cytoscape.js json.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          876: Một thành phần Vue cho cytoscape.js.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          877: Xuất biểu đồ cytoscape.js vào slide powerpoint.

                                                                                                        Sự đăng ký

                                                                                                        Để đăng ký tiện ích mở rộng, hãy thực hiện cuộc gọi sau:

                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        878

                                                                                                        Giá trị của

                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        620 có thể nhận các giá trị sau:

                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          880: Phần mở rộng thêm hàm lõi.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          881: Phần mở rộng thêm chức năng thu thập.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          882: Phần mở rộng đăng ký một nguyên mẫu bố cục.

                                                                                                        Đối số

                                                                                                        cytoscape({
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: {
                                                                                                            nodes: [
                                                                                                              {
                                                                                                                data: { id: 'a' }
                                                                                                              },
                                                                                                        
                                                                                                              {
                                                                                                                data: { id: 'b' }
                                                                                                              }
                                                                                                            ],
                                                                                                            edges: [
                                                                                                              {
                                                                                                                data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                              }
                                                                                                            ]
                                                                                                          },
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'grid',
                                                                                                            rows: 1
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        });
                                                                                                        
                                                                                                        19 cho biết tên của tiện ích mở rộng, ví dụ: Các thanh ghi mã sau
                                                                                                        .side-line {
                                                                                                            display: inline-block;
                                                                                                            border-top: 1px solid black;
                                                                                                            width: 20%;
                                                                                                        }
                                                                                                        
                                                                                                        .triangle {
                                                                                                            display: inline-block;
                                                                                                            height: 7px;
                                                                                                            width: 7px;
                                                                                                            transform: rotate(45deg);
                                                                                                            transform-origin: center center;
                                                                                                            border-top: 1px solid black;
                                                                                                            border-left: 1px solid black;
                                                                                                            margin: 0 -3px -3px;
                                                                                                        }
                                                                                                        
                                                                                                        884:

                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        50

                                                                                                        Thiết lập dự án

                                                                                                        1. Tạo một kho lưu trữ trên GitHub cho mã mở rộng của bạn
                                                                                                        2. Sử dụng Rollup-Starter-Lib để tạo giàn giáo dự án. Ngoài ra, việc tạo thủ công các tệp cấu hình dự án với Bundler yêu thích của bạn.
                                                                                                        3. Sử dụng Babel nếu bạn muốn hỗ trợ các trình duyệt cũ hơn với tiện ích mở rộng của bạn. REPO
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          885 có một ví dụ trong nhánh
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          886.
                                                                                                        4. Xuất xuất mặc định của tiện ích mở rộng của bạn phải là chức năng đăng ký, ví dụ:
                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        51
                                                                                                        1. Bạn có thể muốn hỗ trợ đăng ký tự động cho người tiêu dùng sử dụng thẻ
                                                                                                          cytoscape({
                                                                                                          
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: [ // flat array of nodes and edges
                                                                                                              { // node n1
                                                                                                                group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                                // NB the group field can be automatically inferred for you but specifying it
                                                                                                                // gives you nice debug messages if you mis-init elements
                                                                                                          
                                                                                                          
                                                                                                                data: { // element data (put json serialisable dev data here)
                                                                                                                  id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                  parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                  // (`parent` can be effectively changed by `eles.move()`)
                                                                                                                },
                                                                                                          
                                                                                                                // scratchpad data (usually temp or nonserialisable data)
                                                                                                                scratch: {
                                                                                                                  _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                                },
                                                                                                          
                                                                                                                position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                  x: 100,
                                                                                                                  y: 100
                                                                                                                },
                                                                                                          
                                                                                                                selected: false, // whether the element is selected (default false)
                                                                                                          
                                                                                                                selectable: true, // whether the selection state is mutable (default true)
                                                                                                          
                                                                                                                locked: false, // when locked a node's position is immutable (default false)
                                                                                                          
                                                                                                                grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                          
                                                                                                                pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                          
                                                                                                                classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                          
                                                                                                                // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                                // USE THE STYLESHEET INSTEAD
                                                                                                                style: { // style property overrides 
                                                                                                                  'background-color': 'red'
                                                                                                                }
                                                                                                              },
                                                                                                          
                                                                                                              { // node n2
                                                                                                                data: { id: 'n2' },
                                                                                                                renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                              },
                                                                                                          
                                                                                                              { // node n3
                                                                                                                data: { id: 'n3', parent: 'nparent' },
                                                                                                                position: { x: 123, y: 234 }
                                                                                                              },
                                                                                                          
                                                                                                              { // node nparent
                                                                                                                data: { id: 'nparent' }
                                                                                                              },
                                                                                                          
                                                                                                              { // edge e1
                                                                                                                data: {
                                                                                                                  id: 'e1',
                                                                                                                  // inferred as an edge because `source` and `target` are specified:
                                                                                                                  source: 'n1', // the source node id (edge comes from this node)
                                                                                                                  target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                  // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                                },
                                                                                                          
                                                                                                                pannable: true // whether dragging on the edge causes panning
                                                                                                              }
                                                                                                            ],
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'preset'
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          
                                                                                                          });
                                                                                                          
                                                                                                          84 truyền thống để sử dụng tiện ích mở rộng của bạn, tức là:
                                                                                                        cytoscape({
                                                                                                        
                                                                                                          container: document.getElementById('cy'),
                                                                                                        
                                                                                                          elements: [ // flat array of nodes and edges
                                                                                                            { // node n1
                                                                                                              group: 'nodes', // 'nodes' for a node, 'edges' for an edge
                                                                                                              // NB the group field can be automatically inferred for you but specifying it
                                                                                                              // gives you nice debug messages if you mis-init elements
                                                                                                        
                                                                                                        
                                                                                                              data: { // element data (put json serialisable dev data here)
                                                                                                                id: 'n1', // mandatory (string) id for each element, assigned automatically on undefined
                                                                                                                parent: 'nparent', // indicates the compound node parent id; not defined => no parent
                                                                                                                // (`parent` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              // scratchpad data (usually temp or nonserialisable data)
                                                                                                              scratch: {
                                                                                                                _foo: 'bar' // app fields prefixed by underscore; extension fields unprefixed
                                                                                                              },
                                                                                                        
                                                                                                              position: { // the model position of the node (optional on init, mandatory after)
                                                                                                                x: 100,
                                                                                                                y: 100
                                                                                                              },
                                                                                                        
                                                                                                              selected: false, // whether the element is selected (default false)
                                                                                                        
                                                                                                              selectable: true, // whether the selection state is mutable (default true)
                                                                                                        
                                                                                                              locked: false, // when locked a node's position is immutable (default false)
                                                                                                        
                                                                                                              grabbable: true, // whether the node can be grabbed and moved by the user
                                                                                                        
                                                                                                              pannable: false, // whether dragging the node causes panning instead of grabbing
                                                                                                        
                                                                                                              classes: ['foo', 'bar'], // an array (or a space separated string) of class names that the element has
                                                                                                        
                                                                                                              // DO NOT USE THE `style` FIELD UNLESS ABSOLUTELY NECESSARY
                                                                                                              // USE THE STYLESHEET INSTEAD
                                                                                                              style: { // style property overrides 
                                                                                                                'background-color': 'red'
                                                                                                              }
                                                                                                            },
                                                                                                        
                                                                                                            { // node n2
                                                                                                              data: { id: 'n2' },
                                                                                                              renderedPosition: { x: 200, y: 200 } // can alternatively specify position in rendered on-screen pixels
                                                                                                            },
                                                                                                        
                                                                                                            { // node n3
                                                                                                              data: { id: 'n3', parent: 'nparent' },
                                                                                                              position: { x: 123, y: 234 }
                                                                                                            },
                                                                                                        
                                                                                                            { // node nparent
                                                                                                              data: { id: 'nparent' }
                                                                                                            },
                                                                                                        
                                                                                                            { // edge e1
                                                                                                              data: {
                                                                                                                id: 'e1',
                                                                                                                // inferred as an edge because `source` and `target` are specified:
                                                                                                                source: 'n1', // the source node id (edge comes from this node)
                                                                                                                target: 'n2'  // the target node id (edge goes to this node)
                                                                                                                // (`source` and `target` can be effectively changed by `eles.move()`)
                                                                                                              },
                                                                                                        
                                                                                                              pannable: true // whether dragging on the edge causes panning
                                                                                                            }
                                                                                                          ],
                                                                                                        
                                                                                                          layout: {
                                                                                                            name: 'preset'
                                                                                                          },
                                                                                                        
                                                                                                          // so we can see the ids
                                                                                                          style: [
                                                                                                            {
                                                                                                              selector: 'node',
                                                                                                              style: {
                                                                                                                'label': 'data(id)'
                                                                                                              }
                                                                                                            }
                                                                                                          ]
                                                                                                        
                                                                                                        });
                                                                                                        
                                                                                                        52
                                                                                                        1. Ghi lại API tiện ích mở rộng của bạn trong tệp
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          888 trong thư mục gốc của dự trữ của bạn.
                                                                                                        2. Xuất bản phần mở rộng của bạn lên NPM.
                                                                                                        3. Gửi yêu cầu để có phần mở rộng của bạn được liệt kê trong tài liệu.

                                                                                                        Bố cục nguyên mẫu

                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          889: Tạo bố cục
                                                                                                          • <script type="module">
                                                                                                            import cytoscape from "./cytoscape.esm.min.js";
                                                                                                            script>
                                                                                                            
                                                                                                            71: Các tùy chọn bố cục, các trường đặc biệt bao gồm:
                                                                                                            • .side-line {
                                                                                                                  display: inline-block;
                                                                                                                  border-top: 1px solid black;
                                                                                                                  width: 20%;
                                                                                                              }
                                                                                                              
                                                                                                              .triangle {
                                                                                                                  display: inline-block;
                                                                                                                  height: 7px;
                                                                                                                  width: 7px;
                                                                                                                  transform: rotate(45deg);
                                                                                                                  transform-origin: center center;
                                                                                                                  border-top: 1px solid black;
                                                                                                                  border-left: 1px solid black;
                                                                                                                  margin: 0 -3px -3px;
                                                                                                              }
                                                                                                              
                                                                                                              891: Biểu đồ tế bào học
                                                                                                            • .side-line {
                                                                                                                  display: inline-block;
                                                                                                                  border-top: 1px solid black;
                                                                                                                  width: 20%;
                                                                                                              }
                                                                                                              
                                                                                                              .triangle {
                                                                                                                  display: inline-block;
                                                                                                                  height: 7px;
                                                                                                                  width: 7px;
                                                                                                                  transform: rotate(45deg);
                                                                                                                  transform-origin: center center;
                                                                                                                  border-top: 1px solid black;
                                                                                                                  border-left: 1px solid black;
                                                                                                                  margin: 0 -3px -3px;
                                                                                                              }
                                                                                                              
                                                                                                              892: Bộ sưu tập các yếu tố được chuyển cho bố cục
                                                                                                        • <script type="module">
                                                                                                          import cytoscape from "./cytoscape.esm.min.js";
                                                                                                          script>
                                                                                                          
                                                                                                          70: Chạy bố cục
                                                                                                          • <script type="module">
                                                                                                            import cytoscape from "./cytoscape.esm.min.js";
                                                                                                            script>
                                                                                                            
                                                                                                            70 gọi
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            895 để đặt vị trí bố cục cuối cùng, nếu bố cục là rời rạc.
                                                                                                          • <script type="module">
                                                                                                            import cytoscape from "./cytoscape.esm.min.js";
                                                                                                            script>
                                                                                                            
                                                                                                            70 bắt đầu bố cục Async, nếu bố cục liên tục (ví dụ: bố cục theo hướng lực, chạy qua một số lần lặp bố cục).
                                                                                                          • Một bố cục liên tục có thể sử dụng một công nhân để tính toán bố cục hoặc nó có thể chạy một số lần lặp bố cục trên mỗi cuộc gọi là
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            897.
                                                                                                          • Mỗi lần lặp có thể nhìn thấy của một bố cục liên tục có thể đặt
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            898.
                                                                                                        • .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          899: Dừng bố cục
                                                                                                          • Hàm này chỉ được chỉ định cho bố cục liên tục.

                                                                                                        Màn biểu diễn

                                                                                                        Tiểu sử

                                                                                                        Bạn có thể nhận thấy rằng hiệu suất bắt đầu xuống cấp trên các biểu đồ với số lượng lớn các yếu tố. Điều này xảy ra vì nhiều lý do:

                                                                                                        • Hiệu suất là một chức năng của kích thước đồ thị, do đó, hiệu suất giảm khi số lượng phần tử tăng lên.
                                                                                                        • Các phong cách hình ảnh phong phú mà cytoscape.js hỗ trợ có thể tốn kém. Chỉ vẽ các vòng tròn và đường thẳng là rẻ, nhưng vẽ đồ thị phức tạp là ít hơn.
                                                                                                        • Các cạnh đặc biệt tốn kém để kết xuất. Nhiều hình ảnh thậm chí còn trở nên đắt đỏ hơn với nhu cầu về các cạnh đường cong bezier.
                                                                                                        • Hiệu suất của việc kết xuất một khung vẽ (bitmap) là một chức năng của khu vực mà nó cần để hiển thị. Như vậy, tỷ lệ pixel tăng (như trong màn hình mật độ cao, như trên iPad) có thể làm giảm hiệu suất kết xuất.

                                                                                                        Tối ưu hóa

                                                                                                        Bạn có thể nhận được hiệu suất tốt hơn nhiều từ cytoscape.js bằng cách điều chỉnh các tùy chọn của bạn, theo thứ tự giảm dần ý nghĩa:

                                                                                                        • Sử dụng
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          900: Hàm
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          901 là cách nhanh nhất để có được một phần tử theo ID. Bạn có thể sử dụng
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          902 để nhập ít hơn. Tìm kiếm bởi bộ chọn thường có nghĩa là bạn phải kiểm tra từng phần tử trong bộ sưu tập, trong khi việc nhận được bằng ID nhanh hơn nhiều khi bảng tra cứu được sử dụng. Bộ chọn ID đơn (ví dụ:
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          903) được tối ưu hóa để sử dụng bảng tra cứu, nhưng nó có thêm chi phí phân tích cú pháp.
                                                                                                          : The
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          901 function is the fastest way to get an element by ID. You can use
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          902 to type less. Searching by selector generally means you have to check each element in the collection, whereas getting by ID is much faster as a lookup table is used. The single ID selector (e.g.
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          903) is optimised to also use the lookup table, but it does have the added cost of parsing.
                                                                                                        • Sửa đổi phần tử hàng loạt: Sử dụng
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          73 để sửa đổi nhiều phần tử cùng một lúc.
                                                                                                          : Use
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          73 to modify many elements at once.
                                                                                                        • Hoạt hình: Bạn sẽ có được hiệu suất tốt hơn mà không cần hình ảnh động. Nếu sử dụng hình ảnh động dù sao: : You will get better performance without animations. If using animations anyway:
                                                                                                          • .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            905 là một sự thay thế rẻ hơn so với hoạt hình mượt mà.
                                                                                                          • Cố gắng giới hạn số lượng các yếu tố hoạt hình đồng thời.
                                                                                                          • Khi sử dụng hình ảnh động chuyển tiếp theo kiểu, hãy đảm bảo
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            573 chỉ được xác định cho các trạng thái mà bạn muốn làm động. Nếu bạn có
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            573 được xác định ở trạng thái mặc định, hình ảnh động sẽ cố gắng chạy thường xuyên hơn nếu bạn giới hạn nó ở trạng thái cụ thể mà bạn thực sự muốn làm động.
                                                                                                        • Giá trị thuộc tính kiểu chức năng: Trong khi thuận tiện, các giá trị thuộc tính kiểu chức năng có thể tốn kém. Do đó, có thể đáng để sử dụng bộ nhớ đệm nếu có thể, chẳng hạn như bằng cách sử dụng chức năng Lodash
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          023. Nếu giá trị thuộc tính kiểu của bạn là một bản đồ thông qua hoặc tuyến tính đơn giản, hãy xem xét sử dụng
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          047 hoặc
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          052 thay thế.
                                                                                                          : While convenient, function style property values can be expensive. Thus, it may be worthwhile to use caching if possible, such as by using the lodash
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          023 function. If your style property value is a simple passthrough or linear mapping, consider using
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          047 or
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          052 instead.
                                                                                                        • Nhãn: Vẽ nhãn là đắt tiền. : Drawing labels is expensive.
                                                                                                          • Nếu bạn có thể đi mà không cần họ hoặc hiển thị chúng trên Tap/Mouseover, bạn sẽ có được hiệu suất tốt hơn.
                                                                                                          • Xem xét không có nhãn cho các cạnh.
                                                                                                          • Xem xét việc thiết lập
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            538 theo phong cách của bạn để khi các nhãn nhỏ - và dù sao cũng khó đọc - chúng không được hiển thị. Khi các nhãn ít nhất là kích thước bạn đặt (nghĩa là người dùng phóng to), chúng sẽ được hiển thị.
                                                                                                          • Bối cảnh và phác thảo làm tăng chi phí của nhãn kết xuất.
                                                                                                        • Đơn giản hóa Kiểu cạnh: Vẽ các cạnh có thể đắt tiền. : Drawing edges can be expensive.
                                                                                                          • Đặt các cạnh của bạn
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            235 thành
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            236 trong bảng kiểu của bạn. Các cạnh cỏ khô là các đường thẳng, ít tốn kém hơn nhiều so với các cạnh
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            239. Đây là kiểu cạnh mặc định.
                                                                                                          • Sử dụng các cạnh rắn. Các cạnh chấm và đứt nét đắt hơn nhiều để vẽ, vì vậy bạn sẽ nhận được hiệu suất tăng lên bằng cách không sử dụng chúng.
                                                                                                          • Mũi tên cạnh rất tốn kém để kết xuất, vì vậy hãy xem xét không sử dụng chúng nếu chúng không có ý nghĩa ngữ nghĩa nào trong biểu đồ của bạn.
                                                                                                          • Các cạnh mờ với mũi tên nhanh hơn gấp đôi so với các cạnh bán trong suốt với mũi tên.
                                                                                                        • Đơn giản hóa kiểu nút: Một số kiểu cho các nút có thể tốn kém. : Certain styles for nodes can be expensive.
                                                                                                          • Hình ảnh nền là rất đắt tiền trong một số trường hợp nhất định. Các hình ảnh nền hiệu suất nhất là không lặp lại (
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            915) và không bị cắt (
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            164). Đối với các hình dạng nút đơn giản như hình vuông hoặc vòng tròn, bạn có thể sử dụng
                                                                                                            .side-line {
                                                                                                                display: inline-block;
                                                                                                                border-top: 1px solid black;
                                                                                                                width: 20%;
                                                                                                            }
                                                                                                            
                                                                                                            .triangle {
                                                                                                                display: inline-block;
                                                                                                                height: 7px;
                                                                                                                width: 7px;
                                                                                                                transform: rotate(45deg);
                                                                                                                transform-origin: center center;
                                                                                                                border-top: 1px solid black;
                                                                                                                border-left: 1px solid black;
                                                                                                                margin: 0 -3px -3px;
                                                                                                            }
                                                                                                            
                                                                                                            189 để mở rộng và loại trừ hình ảnh của bạn để mô phỏng việc cắt phần mềm (ví dụ: với hình ảnh Magick để nó tự động). Thay vì tiền sử, bạn có thể sử dụng PNG thông minh với nền trong suốt.
                                                                                                          • Biên giới nút có thể hơi tốn kém, vì vậy bạn có thể thử nghiệm loại bỏ chúng để xem liệu nó có tạo ra sự khác biệt đáng chú ý cho trường hợp sử dụng của bạn không.
                                                                                                        • Tránh các bộ chọn hợp chất và cạnh: Các bộ chọn hợp chất (ví dụ:
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          918) và các bộ chọn cạnh (ví dụ:
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          919) có thể tốn kém vì các đường truyền là cần thiết.
                                                                                                          : Compound selectors (e.g.
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          918) and edge selectors (e.g.
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          919) can be expensive because traversals are necessary.
                                                                                                        • Đặt tỷ lệ pixel thấp hơn: Vì nó đắt hơn để hiển thị nhiều pixel hơn, bạn có thể đặt
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          63 thành
                                                                                                          var a = cy.$('#a'); // assume a compound node
                                                                                                          
                                                                                                          // the neighbourhood of `a` contains directly connected elements
                                                                                                          var directlyConnected = a.neighborhood();
                                                                                                          
                                                                                                          // you may want everything connected to its descendants instead
                                                                                                          // because the descendants "belong" to `a`
                                                                                                          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                          
                                                                                                          89 trong các tùy chọn khởi tạo để tăng hiệu suất cho các biểu đồ lớn trên màn hình mật độ cao. Tuy nhiên, điều này làm cho kết xuất ít sắc nét hơn.
                                                                                                          : Because it is more expensive to render more pixels, you can set
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          63 to
                                                                                                          var a = cy.$('#a'); // assume a compound node
                                                                                                          
                                                                                                          // the neighbourhood of `a` contains directly connected elements
                                                                                                          var directlyConnected = a.neighborhood();
                                                                                                          
                                                                                                          // you may want everything connected to its descendants instead
                                                                                                          // because the descendants "belong" to `a`
                                                                                                          var indirectlyConnected = a.add( a.descendants() ).neighborhood();
                                                                                                          
                                                                                                          89 in the initialisation options to increase performance for large graphs on high density displays. However, this makes the rendering less crisp.
                                                                                                        • Các nút ghép: Các nút ghép làm cho các tính toán phong cách và kết xuất đắt hơn. Nếu biểu đồ của bạn không yêu cầu các nút ghép, bạn có thể cải thiện hiệu suất bằng cách không sử dụng các nút cha mẹ hỗn hợp. : Compound nodes make style calculations and rendering more expensive. If your graph does not require compound nodes, you can improve performance by not using compound parent nodes.
                                                                                                        • Ẩn các cạnh trong quá trình tương tác: Đặt
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          54 thành
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          06 trong các tùy chọn khởi tạo của bạn. Điều này có thể làm cho tính tương tác ít tốn kém hơn cho các biểu đồ rất lớn bằng cách ẩn các cạnh trong chảo, zoom bánh xe chuột, pinch-to-zoom và các hành động kéo nút. Tùy chọn này tạo ra sự khác biệt chỉ trên đồ thị rất, rất lớn.
                                                                                                          : Set
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          54 to
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          06 in your initialisation options. This can make interactivity less expensive for very large graphs by hiding edges during pan, mouse wheel zoom, pinch-to-zoom, and node drag actions. This option makes a difference on only very, very large graphs.
                                                                                                        • Tái chế các trường hợp lớn: Các trường hợp lớn có thể sử dụng nhiều bộ nhớ, chủ yếu là do sử dụng vải. Phục hồi một ví dụ sẽ giúp giữ cho việc sử dụng bộ nhớ của bạn thấp hơn so với việc gọi
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          53, bởi vì bạn đã giành được nhiều đống và bạn đã giành được bộ sưu tập rác.
                                                                                                          : Large instances can use a lot of memory, mostly due to canvas use. Recyling an instance will help to keep your memory usage lower than calling
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          53, because you won’t grow the heap as much and you won’t invoke the garbage collector as much.
                                                                                                        • Tránh nhiều lớp phủ nút: Lớp phủ không thể được lưu trữ. Giới hạn số lượng các nút đồng thời có
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          557 với giá trị khác không. Hiển thị mặc định chỉ sử dụng kiểu lớp phủ trên phần tử hoạt động, chỉ có thể là một yếu tố tại một thời điểm.
                                                                                                          : Overlays can not be cached. Limit the number of simultaneous nodes that have
                                                                                                          .side-line {
                                                                                                              display: inline-block;
                                                                                                              border-top: 1px solid black;
                                                                                                              width: 20%;
                                                                                                          }
                                                                                                          
                                                                                                          .triangle {
                                                                                                              display: inline-block;
                                                                                                              height: 7px;
                                                                                                              width: 7px;
                                                                                                              transform: rotate(45deg);
                                                                                                              transform-origin: center center;
                                                                                                              border-top: 1px solid black;
                                                                                                              border-left: 1px solid black;
                                                                                                              margin: 0 -3px -3px;
                                                                                                          }
                                                                                                          
                                                                                                          557 with a non-zero value. The default stylesheet uses the overlay style only on the active element, which can only ever be one element at a time.
                                                                                                        • Sử dụng kết cấu Zoom & Pan: Đặt
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          56 thành
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          06 trong các tùy chọn khởi tạo của bạn. Thay vì tái tạo toàn bộ cảnh, điều này tạo ra một bộ đệm kết cấu của chế độ xem khi bắt đầu các hoạt động pan và zoom, và thay vào đó thao tác điều đó. Làm cho panning và phóng to mượt mà hơn cho các biểu đồ rất lớn. Tùy chọn này tạo ra sự khác biệt chỉ trên đồ thị rất, rất lớn. Trình kết xuất có hỗ trợ cho bộ nhớ đệm kết cấu chung hơn, và vì vậy
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          56 chỉ hữu ích nếu bạn thực sự cần tùy chọn rẻ nhất tuyệt đối.
                                                                                                          : Set
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          56 to
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          06 in your initialisation options. Rather than rerendering the entire scene, this makes a texture cache of the viewport at the start of pan and zoom operations, and manipulates that instead. Makes panning and zooming smoother for very large graphs. This option makes a difference on only very, very large graphs. The renderer has support for more general texture caching, and so
                                                                                                          cytoscape({
                                                                                                            container: document.getElementById('cy'),
                                                                                                          
                                                                                                            elements: {
                                                                                                              nodes: [
                                                                                                                {
                                                                                                                  data: { id: 'a' }
                                                                                                                },
                                                                                                          
                                                                                                                {
                                                                                                                  data: { id: 'b' }
                                                                                                                }
                                                                                                              ],
                                                                                                              edges: [
                                                                                                                {
                                                                                                                  data: { id: 'ab', source: 'a', target: 'b' }
                                                                                                                }
                                                                                                              ]
                                                                                                            },
                                                                                                          
                                                                                                            layout: {
                                                                                                              name: 'grid',
                                                                                                              rows: 1
                                                                                                            },
                                                                                                          
                                                                                                            // so we can see the ids
                                                                                                            style: [
                                                                                                              {
                                                                                                                selector: 'node',
                                                                                                                style: {
                                                                                                                  'label': 'data(id)'
                                                                                                                }
                                                                                                              }
                                                                                                            ]
                                                                                                          });
                                                                                                          
                                                                                                          56 is only useful if you really need the absolute cheapest option.