PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
グラフユーティリティパッケージ
>
Graph Utilities
パッケージ シンボル
グラフユーティリティパッケージ
チュートリアル »
|
StrongComponents
MaximalIndependentEdgeSet
関連項目 »
|
グラフユーティリティパッケージ
その他 »
MaximalBipartiteMatching
MaximalBipartiteMatching[
g
]
二部グラフ
g
の最大マッチングを返す.
詳細
MaximalBipartiteMatching
を使うためには,まず
グラフユーティリティパッケージ
をロードしなくてはならない.それには
Needs
["GraphUtilities`"]
を実行する必要がある.
MaximalBipartiteMatching
は二部グラフの2つの頂点集合間の非隣接辺の最大集合を与える.
m
×
n
行列により表される二部グラフは行頂点集合
R={1, 2,
...
,
m
}
と列頂点集合
C
={1, 2,
...
,
n
}
で構成される.ここで行列要素が
g
ij
≠0
ならば,頂点
i
R
と
j
C
は連結される.
規則のリスト
{
i
1
->
j
1
,
i
2
->
j
2
,
...
}
で表される二部グラフは,頂点集合
R=
Union
[{
i
1
,
i
2
,
...
}]
と
C
=
Union
[{
j
1
,
j
2
,
...
}]
で構成される.ここで規則
i
->
j
が規則のリストに含まれるなら,頂点
i
R
と
j
C
は連結される.
MaximalBipartiteMatching
は,ペアの数
k
がどちらの頂点集合よりも小さくなる頂点ペアのリスト
{{
i
1
,
j
1
},
...
, {
i
k
,
j
k
}}
を返す.
例題
すべて閉じる
例
(1)
Needs["GraphUtilities`"]
4人が飲むことのできる飲み物を記述した二部グラフ:
In[2]:=
2人が同じ飲み物を飲まないとした場合に,各人が飲むもの:
In[3]:=
Out[3]=
アプリケーション
(1)
関連項目
StrongComponents
MaximalIndependentEdgeSet
チュートリアル
グラフユーティリティパッケージ
その他
グラフユーティリティパッケージ
© 2008 Wolfram Research, Inc.