亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? graph.pod

?? nasm早期的源代碼,比較簡單是學習匯編和編譯原理的好例子
?? POD
?? 第 1 頁 / 共 5 頁
字號:
    $g->is_self_loop_vertex($v)

Return true if the vertex $v is a self loop vertex: has an edge
from itself to itself.

=item sink_vertices

    @v = $g->sink_vertices()

Return the sink vertices of the graph.
In scalar context return the number of sink vertices.
See L</is_sink_vertex> for the definition of a sink vertex.

=item source_vertices

    @v = $g->source_vertices()

Return the source vertices of the graph.
In scalar context return the number of source vertices.
See L</is_source_vertex> for the definition of a source vertex.

=item successorful_vertices

    @v = $g->successorful_vertices()

Return the successorful vertices of the graph.
In scalar context return the number of successorful vertices.

=item successorless_vertices

    @v = $g->successorless_vertices()

Return the successorless vertices of the graph.
In scalar context return the number of successorless vertices.

=item successors

    @s = $g->successors($v)

Return the immediate successor vertices of the vertex.

=item neighbors

=item neighbours

Return the neighbo(u)ring vertices.  Also known as the I<adjacent vertices>.

=item predecessorful_vertices

    @v = $g->predecessorful_vertices()

Return the predecessorful vertices of the graph.
In scalar context return the number of predecessorful vertices.

=item predecessorless_vertices

    @v = $g->predecessorless_vertices()

Return the predecessorless vertices of the graph.
In scalar context return the number of predecessorless vertices.

=item predecessors

    @s = $g->predecessors($v)

Return the immediate predecessor vertices of the vertex.

=item isolated_vertices

    @v = $g->isolated_vertices()

Return the isolated vertices of the graph.
In scalar context return the number of isolated vertices.
See L</is_isolated_vertex> for the definition of an isolated vertex.

=item interior_vertices

    @v = $g->interior_vertices()

Return the interior vertices of the graph.
In scalar context return the number of interior vertices.
See L</is_interior_vertex> for the definition of an interior vertex.

=item exterior_vertices

    @v = $g->exterior_vertices()

Return the exterior vertices of the graph.
In scalar context return the number of exterior vertices.
See L</is_exterior_vertex> for the definition of an exterior vertex.

=item self_loop_vertices

    @v = $g->self_loop_vertices()

Return the self-loop vertices of the graph.
In scalar context return the number of self-loop vertices.
See L</is_self_loop_vertex> for the definition of a self-loop vertex.

=back

=head2 Connected Graphs and Their Components

In this discussion I<connected graph> refers to any of
I<connected graphs>, I<biconnected graphs>, and I<strongly
connected graphs>.

B<NOTE>: if the vertices of the original graph are Perl objects,
(in other words, references, so you must be using C<refvertexed>) 
the vertices of the I<connected graph> are NOT by default usable
as Perl objects because they are blessed into a package with
a rather unusable name.

By default, the vertex names of the I<connected graph> are formed from
the names of the vertices of the original graph by (alphabetically
sorting them and) concatenating their names with C<+>.  The vertex
attribute C<subvertices> is also used to store the list (as an array
reference) of the original vertices.  To change the 'supercomponent'
vertex names and the whole logic of forming these supercomponents
use the C<super_component>) option to the method calls:

  $g->connected_graph(super_component => sub { ... })
  $g->biconnected_graph(super_component => sub { ... })
  $g->strongly_connected_graph(super_component => sub { ... })

The subroutine reference gets the 'subcomponents' (the vertices of the
original graph) as arguments, and it is supposed to return the new
supercomponent vertex, the "stringified" form of which is used as the
vertex name.

=head2 Degree

A vertex has a degree based on the number of incoming and outgoing edges.
This really makes sense only for directed graphs.

=over 4

=item degree

=item vertex_degree

    $d = $g->degree($v)
    $d = $g->vertex_degree($v)

For directed graphs: the in-degree minus the out-degree at the vertex.
For undirected graphs: the number of edges at the vertex.

=item in_degree

    $d = $g->in_degree($v)

The number of incoming edges at the vertex.

=item out_degree

    $o = $g->out_degree($v)

The number of outgoing edges at the vertex.

=item average_degree

   my $ad = $g->average_degree;

Return the average degree taken over all vertices.

=back

Related methods are

=over 4

=item edges_at

    @e = $g->edges_at($v)

The union of edges from and edges to at the vertex.

=item edges_from

    @e = $g->edges_from($v)

The edges leaving the vertex.

=item edges_to

    @e = $g->edges_to($v)

The edges entering the vertex.

=back

See also L</average_degree>.

=head2 Counted Vertices

I<Counted vertices> are vertices with more than one instance, normally
adding vertices is idempotent.  To enable counted vertices on a graph,
give the C<countvertexed> parameter a true value

    use Graph;
    my $g = Graph->new(countvertexed => 1);

To find out how many times the vertex has been added:

=over 4

=item get_vertex_count

    my $c = $g->get_vertex_count($v);

Return the count of the vertex, or undef if the vertex does not exist.

=back

=head2 Multiedges, Multivertices, Multigraphs

I<Multiedges> are edges with more than one "life", meaning that one
has to delete them as many times as they have been added.  Normally
adding edges is idempotent (in other words, adding edges more than
once makes no difference).

There are two kinds or degrees of creating multiedges and multivertices.
The two kinds are mutually exclusive.

The weaker kind is called I<counted>, in which the edge or vertex has
a count on it: add operations increase the count, and delete
operations decrease the count, and once the count goes to zero, the
edge or vertex is deleted.  If there are attributes, they all are
attached to the same vertex.  You can think of this as the graph
elements being I<refcounted>, or I<reference counted>, if that sounds
more familiar.

The stronger kind is called (true) I<multi>, in which the edge or vertex
really has multiple separate identities, so that you can for example
attach different attributes to different instances.

To enable multiedges on a graph:

    use Graph;
    my $g0 = Graph->new(countedged => 1);
    my $g0 = Graph->new(multiedged => 1);

Similarly for vertices

    use Graph;
    my $g1 = Graph->new(countvertexed => 1);
    my $g1 = Graph->new(multivertexed => 1);

You can test for these by

=over 4

=item is_countedged

=item countedged

    $g->is_countedged
    $g->countedged

Return true if the graph is countedged.

=item is_countvertexed

=item countvertexed

    $g->is_countvertexed
    $g->countvertexed

Return true if the graph is countvertexed.

=item is_multiedged

=item multiedged

    $g->is_multiedged
    $g->multiedged

Return true if the graph is multiedged.

=item is_multivertexed

=item multivertexed

    $g->is_multivertexed
    $g->multivertexed

Return true if the graph is multivertexed.

=back

A multiedged (either the weak kind or the strong kind) graph is
a I<multigraph>, for which you can test with C<is_multi_graph()>.

B<NOTE>: The various graph algorithms do not in general work well with
multigraphs (they often assume I<simple graphs>, that is, no
multiedges or loops), and no effort has been made to test the
algorithms with multigraphs.

vertices() and edges() will return the multiple elements: if you want
just the unique elements, use

=over 4

=item unique_vertices

=item unique_edges

    @uv = $g->unique_vertices; # unique
    @mv = $g->vertices;        # possible multiples
    @ue = $g->unique_edges;
    @me = $g->edges;

=back

If you are using (the stronger kind of) multielements, you should use
the I<by_id> variants:

=over 4

=item add_vertex_by_id

=item has_vertex_by_id

=item delete_vertex_by_id

=item add_edge_by_id

=item has_edge_by_id

=item delete_edge_by_id

=back

    $g->add_vertex_by_id($v, $id)
    $g->has_vertex_by_id($v, $id)
    $g->delete_vertex_by_id($v, $id)

    $g->add_edge_by_id($u, $v, $id)
    $g->has_edge_by_id($u, $v, $id)
    $g->delete_edge_by_id($u, $v, $id)

When you delete the last vertex/edge in a multivertex/edge, the whole
vertex/edge is deleted.  You can use add_vertex()/add_edge() on
a multivertex/multiedge graph, in which case an id is generated
automatically.  To find out which the generated id was, you need
to use

=over 4

=item add_vertex_get_id

=item add_edge_get_id

=back

    $idv = $g->add_vertex_get_id($v)
    $ide = $g->add_edge_get_id($u, $v)

To return all the ids of vertices/edges in a multivertex/multiedge, use

=over 4

=item get_multivertex_ids

=item get_multiedge_ids

=back

    $g->get_multivertex_ids($v)
    $g->get_multiedge_ids($u, $v)

The ids are returned in random order.

To find out how many times the edge has been added (this works for
either kind of multiedges):

=over 4

=item get_edge_count

    my $c = $g->get_edge_count($u, $v);

Return the count (the "countedness") of the edge, or undef if the
edge does not exist.

=back

The following multi-entity utility functions exist, mirroring
the non-multi vertices and edges:

=over 4

=item add_weighted_edge_by_id

=item add_weighted_edges_by_id

=item add_weighted_path_by_id

=item add_weighted_vertex_by_id

=item add_weighted_vertices_by_id

=item delete_edge_weight_by_id

=item delete_vertex_weight_by_id

=item get_edge_weight_by_id

=item get_vertex_weight_by_id

=item has_edge_weight_by_id

=item has_vertex_weight_by_id

=item set_edge_weight_by_id

=item set_vertex_weight_by_id

=back

=head2 Topological Sort

=over 4

=item topological_sort

=item toposort

    my @ts = $g->topological_sort;

Return the vertices of the graph sorted topologically.  Note that
there may be several possible topological orderings; one of them
is returned.

If the graph contains a cycle, a fatal error is thrown, you
can either use C<eval> to trap that, or supply the C<empty_if_cyclic>
argument with a true value

    my @ts = $g->topological_sort(empty_if_cyclic => 1);

in which case an empty array is returned if the graph is cyclic.

=back

=head2 Minimum Spanning Trees (MST)

Minimum Spanning Trees or MSTs are tree subgraphs derived from an
undirected graph.  MSTs "span the graph" (covering all the vertices)
using as lightly weighted (hence the "minimum") edges as possible.

=over 4

=item MST_Kruskal

    $mstg = $g->MST_Kruskal;

Returns the Kruskal MST of the graph.

=item MST_Prim

    $mstg = $g->MST_Prim(%opt);

Returns the Prim MST of the graph.

You can choose the first vertex with $opt{ first_root }.

=item MST_Dijkstra

=item minimum_spanning_tree

    $mstg = $g->MST_Dijkstra;
    $mstg = $g->minimum_spanning_tree;

Aliases for MST_Prim.

=back

=head2 Single-Source Shortest Paths (SSSP)

Single-source shortest paths, also known as Shortest Path Trees
(SPTs).  For either a directed or an undirected graph, return a (tree)
subgraph that from a single start vertex (the "single source") travels
the shortest possible paths (the paths with the lightest weights) to
all the other vertices.  Note that the SSSP is neither reflexive (the
shortest paths do not include the zero-length path from the source
vertex to the source vertex) nor transitive (the shortest paths do not
include transitive closure paths).  If no weight is defined for an
edge, 1 (one) is assumed.

=over 4

=item SPT_Dijkstra

    $sptg = $g->SPT_Dijkstra($root)
    $sptg = $g->SPT_Dijkstra(%opt)

Return as a graph the the single-source shortest paths of the graph
using Dijkstra's algorithm.  The graph cannot contain negative edges
(negative edges cause the algorithm to abort with an error message
C<Graph::SPT_Dijkstra: edge ... is negative>).

You can choose the first vertex of the result with either a single
vertex argument or with $opt{ first_root }, otherwise a random vertex
is chosen.

B<NOTE>: note that all the vertices might not be reachable from the
selected (explicit or random) start vertex.

The start vertex is be available as the graph attribute
C<SPT_Dijkstra_root>).

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产女同互慰高潮91漫画| 色综合咪咪久久| 午夜伊人狠狠久久| 亚洲欧美激情插| 亚洲伊人伊色伊影伊综合网| 亚洲一区二区偷拍精品| 亚洲成人一区二区| 日韩精品国产精品| 青青草成人在线观看| 久国产精品韩国三级视频| 国产一区不卡视频| av网站一区二区三区| 91国产免费观看| 欧美性做爰猛烈叫床潮| 欧美吞精做爰啪啪高潮| 欧美一区二区日韩一区二区| 欧美大白屁股肥臀xxxxxx| 国产欧美日韩麻豆91| 亚洲欧洲三级电影| 亚洲v中文字幕| 麻豆精品视频在线观看免费| 国产成人啪免费观看软件| av成人免费在线观看| 欧美色爱综合网| 337p日本欧洲亚洲大胆精品| 中文字幕乱码亚洲精品一区| 一区二区不卡在线播放| 美女www一区二区| 99久久久国产精品| 91麻豆精品国产91久久久资源速度| 欧美大尺度电影在线| 国产精品久久久久四虎| 青青青伊人色综合久久| gogogo免费视频观看亚洲一| 91精品国产一区二区| 国产精品久久综合| 首页综合国产亚洲丝袜| 风流少妇一区二区| 欧美精品一二三| 欧美大片拔萝卜| 亚洲一区二区av电影| 国内精品自线一区二区三区视频| 91视频.com| 亚洲精品一区二区三区福利| 亚洲国产va精品久久久不卡综合| 国产一区二区三区美女| 69久久夜色精品国产69蝌蚪网| 欧美激情资源网| 韩国v欧美v日本v亚洲v| 欧美日韩国产另类不卡| 亚洲色图在线看| www.色精品| 久久久久久久久久看片| 蜜桃视频第一区免费观看| 在线免费不卡电影| 中文字幕在线播放不卡一区| 国产揄拍国内精品对白| 欧美电影免费观看高清完整版在线| 亚洲线精品一区二区三区八戒| 97精品超碰一区二区三区| 欧美一级黄色录像| 日韩精品福利网| 欧美日韩一级二级三级| 一区二区三区免费网站| 成人app软件下载大全免费| 精品99一区二区| 精品在线播放午夜| 欧美精品一区二区三区蜜臀| 日本成人超碰在线观看| 91精品国产综合久久久久久久| 亚洲妇女屁股眼交7| 欧美日韩综合在线免费观看| 亚洲精品国产一区二区三区四区在线| av中文字幕在线不卡| 国产精品美女久久久久久2018| 成人精品在线视频观看| 国产精品色噜噜| av一区二区三区黑人| 日韩毛片精品高清免费| 91麻豆免费在线观看| 亚洲视频免费在线观看| 91片黄在线观看| 亚洲成av人片在www色猫咪| 欧美日韩一级片网站| 天天影视涩香欲综合网| 欧美一卡二卡在线| 国产精品中文字幕日韩精品| 欧美国产成人精品| 在线亚洲免费视频| 日韩精品亚洲一区二区三区免费| 日韩一级高清毛片| 国产传媒欧美日韩成人| 久久免费美女视频| 91在线视频播放| 亚洲午夜激情av| 777欧美精品| 高清av一区二区| 亚洲高清免费观看 | 久久精品人人爽人人爽| 国产福利精品一区二区| 亚洲免费观看高清在线观看| 欧美三级午夜理伦三级中视频| 免费观看成人鲁鲁鲁鲁鲁视频| 久久久午夜精品理论片中文字幕| 99国产麻豆精品| 青青青爽久久午夜综合久久午夜| 久久亚区不卡日本| 欧美日韩在线播放三区| 国产福利91精品| 性感美女极品91精品| 日本一区二区三区国色天香| 欧美无人高清视频在线观看| 国产成人8x视频一区二区| 亚洲最大的成人av| 国产欧美日韩另类一区| 欧美午夜不卡在线观看免费| 国产传媒欧美日韩成人| 奇米精品一区二区三区在线观看| 1000部国产精品成人观看| 欧美电影精品一区二区| 91久久精品一区二区三| 国产乱一区二区| 天堂va蜜桃一区二区三区| 亚洲三级在线看| 久久免费的精品国产v∧| 欧美日本一区二区三区四区| 99麻豆久久久国产精品免费优播| 激情亚洲综合在线| 亚洲成人免费在线| 亚洲精品一二三| 日本一区二区动态图| 欧美成人官网二区| 777午夜精品视频在线播放| 91免费视频网| caoporn国产一区二区| 国产aⅴ综合色| 免费在线观看成人| 五月天激情综合网| 天堂成人国产精品一区| 香蕉乱码成人久久天堂爱免费| 洋洋av久久久久久久一区| 亚洲三级久久久| 中文字幕中文在线不卡住| 久久亚洲精品小早川怜子| 欧美电影一区二区| 欧美日韩免费高清一区色橹橹 | 国产精品灌醉下药二区| 国产区在线观看成人精品| 久久看人人爽人人| 久久综合色综合88| 精品国产青草久久久久福利| 日韩欧美国产三级| 日韩一区二区免费电影| 日韩一级完整毛片| 精品成人私密视频| 国产欧美日韩综合精品一区二区| 国产三级一区二区| 亚洲国产精品精华液2区45| 久久久久国产免费免费| 国产蜜臀av在线一区二区三区| 欧美韩国日本综合| 中文字幕一区二区三区乱码在线| 综合网在线视频| 洋洋成人永久网站入口| 日日夜夜精品免费视频| 毛片av一区二区| 国产精品91一区二区| 不卡的av电影在线观看| 欧美色中文字幕| 欧美v日韩v国产v| 亚洲国产经典视频| 亚洲成人精品在线观看| 久久成人av少妇免费| 成人免费视频视频在线观看免费 | 色综合激情久久| 欧美三电影在线| 久久亚洲一级片| 一区二区三区电影在线播| 亚洲va韩国va欧美va精品| 精东粉嫩av免费一区二区三区| 成人免费观看av| 欧美狂野另类xxxxoooo| 日本一区二区在线不卡| 亚洲一区二区三区中文字幕 | 蜜桃精品视频在线| 成人免费视频app| 欧美午夜免费电影| 久久久影视传媒| 亚洲午夜三级在线| 成人网在线播放| 7777精品伊人久久久大香线蕉的| 国产欧美一区二区三区在线看蜜臀| 一区二区三区欧美激情| 国产成人午夜99999| 欧美日韩另类国产亚洲欧美一级| 国产亚洲精品超碰| 性做久久久久久| 色婷婷av一区| 国产欧美精品一区| 免费成人在线网站|