版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
網(wǎng)絡(luò)科學(xué)基礎(chǔ)
ElementsofNetworkScience齊魯工業(yè)大學(xué)信息學(xué)院
主講人:張維玉
電話箱:zwy@第二講網(wǎng)絡(luò)與圖2023/2/1主講教師:張維玉2Canonewalkacrossthesevenbridgesandnevercrossthesamebridgetwice?
Canonewalkacrossthesevenbridgesandnevercrossthesamebridgetwice?
1735:LeonhardEuler’stheorem:Ifagraphhasnodesofodddegree,thereisnopath.Ifagraphisconnectedandhasnoodddegreenodes,ithasat
leastonepath.
components:nodes,vertices(節(jié)點(diǎn))
N
interactions:links,edges (連邊)
L
system: network,graph (網(wǎng)絡(luò),圖)
(N,L)NetworkScience:GraphTheory2012網(wǎng)絡(luò)組件networkoftenreferstorealsystemswww,socialnetworkmetabolicnetwork.Language:(Network,node,link)graph:mathematicalrepresentationofanetworkwebgraph,socialgraph(aFacebookterm)
Language:(Graph,vertex,edge)Wewilltrytomakethisdistinctionwheneveritisappropriate,butinmostcaseswewillusethetwotermsinterchangeably.(大部分場(chǎng)合,我們互用網(wǎng)絡(luò)和圖這兩個(gè)概念)網(wǎng)絡(luò)與圖的關(guān)系PeterMaryAlbertAlbertco-workerfriendbrothersfriendProtein1Protein2Protein5Protein9Movie1Movie3Movie2Actor3Actor1Actor2Actor4N=4L=4網(wǎng)絡(luò)是一種通用工具Thechoiceofthepropernetworkrepresentationdeterminesourabilitytousenetworktheorysuccessfully.
Insomecasesthereisaunique(獨(dú)一無(wú)二),unambiguousrepresentation.Inothercases,therepresentationisbynomeansunique.
Forexample,thewayweassignthelinksbetweenagroupofindividualswilldeterminethenatureofthequestionwecanstudy.選擇一個(gè)適當(dāng)?shù)木W(wǎng)絡(luò)表達(dá)Ifyouconnectindividualsthatworkwitheachother,youwillexploretheprofessionalnetwork.NetworkScience:GraphTheory2012Ifyouconnectthosethathavearomanticandsexualrelationship,youwillbeexploringthesexualnetworks.Ifyouconnectindividualsbasedontheirfirstname(allPetersconnectedtoeachother),youwillbeexploringwhat?Itisanetwork,nevertheless.根據(jù)我們要研究的目標(biāo)來(lái)構(gòu)建網(wǎng)絡(luò)是開展研究的第一步!網(wǎng)絡(luò)不是毫無(wú)目的隨意構(gòu)建的!Links:undirected(symmetrical,對(duì)稱關(guān)系) Graph:
Directedlinks:URLsonthewwwphonecallsmetabolicreactions(代謝反應(yīng))Undirected(無(wú)向網(wǎng)絡(luò))Directed有向網(wǎng)絡(luò)ABDCLMFGHILinks:directed(arcs).Digraph=directedgraph:Undirectedlinks:coauthorshiplinksActornetworkproteininteractionsAnundirectedlinkisthesuperpositionoftwooppositedirectedlinks.AGFBCDENodedegree:thenumberoflinksconnectedtothenode.UndirectedIndirectednetworkswecandefineanin-degreeandout-degree.The(total)degreeisthesumofin-andout-degree.Source:anodewithkin=0;Sink:anodewithkout=0.DirectedAGFBCDEAB節(jié)點(diǎn)的度(degree)Wehaveasampleofvaluesx1,...,xNAverage
(a.k.a.mean):typicalvalue
<x>=(x1+x1+...+xN)/N=Σixi/N度的平均值能表達(dá)什么信息?度的平均值--一個(gè)統(tǒng)計(jì)意義上的值N–thenumberofnodesinthegraphUndirectedDirectedAFBCDEjiThemaximumnumberoflinksanetworkofNnodescanhaveis:AgraphwithLinkL=Lmax
iscalledacompletegraph,anditsaveragedegreeis<k>=N-1完全網(wǎng)絡(luò)Mostnetworksobservedinrealsystemsaresparse(稀疏):L<<Lmax
or
<k><<N-1. WWW(NDSample): N=325,729; L=1.4106 Lmax=1012 <k>=4.51 Protein(S.Cerevisiae): N=1,870; L=4,470 Lmax=107 <k>=2.39 Coauthorship(Math): N=70,975; L=2105 Lmax=31010 <k>=3.9 MovieActors: N=212,250; L=6106 Lmax=1.81013 <k>=28.78
真實(shí)的網(wǎng)絡(luò)大多都是稀疏的(sparse)ThemaximumnumberoflinksanetworkofNnodescanhaveis:METCALFE’SLAW(梅特卡夫定律)Aij=1ifthereisalinkbetweennodeiandjAij=0ifnodesiandjarenotconnectedtoeachother.網(wǎng)絡(luò)表示形式—連接矩陣Notethatforadirectedgraph(right)thematrixisnotsymmetric.
42312314abcdefgha01001010b10100001c01010110d00101000e10010000f
00100010g
10100000h
01000000begacfhdUndirected2314Directed42313UndirectedDirected1423214Actornetwork,protein-proteininteractionsWWW,citationnetworksUnweighted(無(wú)權(quán)重)(undirected)Weighted(有權(quán)重)(undirected)31423214protein-proteininteractions,wwwCallGraph,metabolicnetworksSelf-interactionsMultigraph(undirected)31423214Proteininteractionnetwork,wwwSocialnetworks,collaborationnetworksCompleteGraph(undirected)3142Actornetwork,protein-proteininteractions真實(shí)的網(wǎng)絡(luò)往往具備多種特征WWW>directedmultigraphwithself-interactionsProteinInteractions>undirectedunweightedwithself-interactionsCollaborationnetwork>undirectedmultigraphorweighted.Mobilephonecalls>directed,weighted.FacebookFriendshiplinks>undirected,unweighted.你的微博網(wǎng)絡(luò)符合哪些特征?bipartitegraph
(orbigraph)isagraphwhosenodescanbedividedintotwodisjointsets
UandVsuchthateverylinkconnectsanodeinUtooneinV;thatis,UandVareindependentsets.Examples:
HollywoodactornetworkCollaborationnetworksDiseasenetwork(diseasome)二部圖GenenetworkGENOMEPHENOMEDISEASOMEDiseasenetworkGoh,Cusick,Valle,Childs,Vidal&Barabási,PNAS(2007)GENENETWORK–DISEASENETWORKHUMANDISEASENETWORKNetworkScience:GraphTheory2012ApathisasequenceofnodesinwhicheachnodeisadjacenttothenextonePi0,inoflengthnbetweennodesi0andinisanorderedcollectionofn+1nodesandnlinks
Apathcanintersectitselfandpassthroughthesamelinkrepeatedly.Eachtimealinkiscrossed,itiscountedseparatelyAlegitimate(合法的)pathonthegraphontheright:ABCBCADEEBA
Inadirectednetwork,thepathcanfollowonlythedirectionofanarrow.PATHS(路徑)ABCDEThedistance(shortestpath,geodesicpath)betweentwonodesisdefinedasthenumberofedgesalongtheshortestpathconnectingthem.*Ifthetwonodesaredisconnected,thedistanceisinfinity.Indirectedgraphseachpathneedstofollowthedirectionofthearrows.ThusinadigraphthedistancefromnodeAtoB(onanABpath)isgenerallydifferentfromthedistancefromnodeBtoA(onaBCApath).DISTANCEINAGRAPHShortestPath,GeodesicPathDCABDCABNij,numberofpathsbetweenanytwonodesiandj:
Lengthn=1:
Ifthereisalinkbetweeniandj,thenAij=1andAij=0otherwise.Lengthn=2:
Ifthereisapathoflengthtwobetweeniandj,thenAikAkj=1,andAikAkj=0otherwise.Thenumberofpathsoflength2:Lengthn:Ingeneral,ifthereisapathoflengthnbetweeniandj,thenAik…Alj=1andAik…Alj=0otherwise.Thenumberofpathsoflengthnbetweeniandjis*
*holdsforbothdirectedandundirectednetworks.使用連接矩陣可以方便求出n步路徑的數(shù)量。NUMBEROFPATHSBETWEENTWONODESAdjacencyMatrixDistancebetweennode
1
andnode4:Startat
1.FINDINGDISTANCES:BREADTHFIRSTSEATCH1111222223333333344444444111111111222223333333344444444Distancebetweennode
1
andnode4:Startat
1.Findthenodesadjacentto
1.Markthemasatdistance1.Puttheminaqueue.11111111222223333333344444444Distancebetweennode
1
andnode4:Startat
1.Findthenodesadjacentto
1.Markthemasatdistance1.Puttheminaqueue.Takethefirstnodeoutofthequeue.Findtheunmarkednodesadjacenttoitinthegraph.Markthemwiththelabelof2.Puttheminthequeue.111122222111Distancebetweennode
1
andnode4:Repeatuntilyoufindnode4ortherearenomorenodesinthequeue.Thedistancebetween
1
and
4
isthelabelof
4
or,if
4
doesnothavealabel,infinity.1111222223333333344444444Diameter:
dmax
themaximumdistancebetweenanypairofnodesinthegraph.
Averagepathlength/distance,<d>,foraconnectedgraph:wheredij
isthedistancefromnodeitonodej
Inanundirectedgraph
dij=dji,so
weonlyneedtocountthemonce:NETWORKDIAMETERANDAVERAGEDISTANCECanonewalkacrossthesevenbridgesandnevercrossthesamebridgetwice?
/answer/graphs.htmEulerPATHorCIRCUIT:returntothestartingpointbytravelingeachlinkofthegraphonceandonlyonce.Everyvertexofthisgraphhasanevendegree,thereforethisisanEuleriangraph.FollowingtheedgesinalphabeticalordergivesanEuleriancircuit/cycle./wiki/Euler_circuitEULERIANGRAPH:ithasanEulerianpathIfadigraphisstronglyconnectedandthein-degreeofeachnodeisequaltoitsout-degree,thenthereisanEulercircuitOtherwisethereisnoEulercircuit.inacircuitweneedtoentereachnodeasmanytimesasweleaveit.ABCDEFGEULERCIRCUITSINDIRECTEDGRAPHSPATHOLOGY:summary25431Path25431ShortestPathAsequenceofnodessuchthateachnodeisconnectedtothenextnodealongthepathbyalink.Thepathwiththeshortestlengthbetweentwonodes(distance).PATHOLOGY:summary25431Diameter25431AveragePathLengthThelongestshortestpathinagraphTheaverageoftheshortestpathsforallpairsofnodes.25431Cycle25431Self-avoidingPathApathwiththesamestartandendnode.Apaththatdoesnotintersectitself.2543125431EulerianPathHamiltonianPathApaththatvisitseachnodeexactlyonce.Apaththattraverseseachlinkexactlyonce.Connected(undirected)graph:anytwoverticescanbejoinedbyapath.Adisconnectedgraphismadeupbytwoormoreconnectedcomponents.Bridge:ifweerase(去除)
it,thegraphbecomesdisconnected.LargestComponent:GiantComponent最大連通子圖Therest:IsolatesCONNECTIVITYOFUNDIRECTEDGRAPHSDCABFFGDCABFFGTheadjacencymatrixofanetworkwithseveralcomponentscanbewritteninablock-diagonalform,sothatnonzeroelementsareconfinedtosquares,withallotherelementsbeingzero:FigureafterNewman,2010CONNECTIVITYOFUNDIRECTEDGRAPHSAdjacencyMatrixNetworkScience:GraphTheory2012Stronglyconnecteddirectedgraph:hasapathfromeachnodetoeveryothernodeandviceversa(e.g.ABpathandBApath).Weaklyconnecteddirectedgraph:itisconnectedifwedisregardtheedgedirections.Stronglyconnectedcomponentscanbeidentified,butnoteverynodeispartofanontrivialstronglyconnectedcomponent.In-component:nodesthatcanreachthescc,Out-component:nodesthatcanbereachedfromthescc.DCABFGEECABGFDDegreedistribution pkTHREECENTRALQUANTITIESINNETWORKSCIENCEAveragepathlength <d>Clusteringcoefficient CWehaveasampleofvaluesx1,...,xNDistributionofx(a.k.a.PDF):probabilitythatarandomlychosenvalueisx
P(x)=(#valuesx)/N
ΣiP(xi)=1always!STATISTICSREMINDERHistograms>>>(直方圖)NetworkScience:GraphTheory2012Degreedistribution
P(k):probabilitythat
arandomlychosenvertexhasdegreekNk=#nodeswithdegreekP(k)=Nk/N?plotkP(k)123DEGREEDISTRIBUTIONdiscreterepresentation:pkist
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 省級(jí)產(chǎn)業(yè)園區(qū)基礎(chǔ)設(shè)施項(xiàng)目背景及必要性
- 瑜伽精準(zhǔn)正位主題課程設(shè)計(jì)
- 2024年眼鏡店專屬勞動(dòng)協(xié)議模板版
- 2024年渠道合作協(xié)議:分銷渠道共享
- 2024年度特色養(yǎng)殖品種引進(jìn)與養(yǎng)殖場(chǎng)承包合同3篇
- 用火安全課程設(shè)計(jì)
- 混合顏色探索課程設(shè)計(jì)
- 2024年研發(fā)成果轉(zhuǎn)化許可合同
- 2024年校企共建產(chǎn)學(xué)研合作項(xiàng)目合作協(xié)議書二零二四6篇
- 2024信用賒銷協(xié)議書:機(jī)械設(shè)備行業(yè)專用3篇
- 《跟隨佐藤學(xué)做教育 學(xué)習(xí)共同體的愿景與行動(dòng)》讀書筆記思維導(dǎo)圖PPT模板下載
- 實(shí)用英語(yǔ)口語(yǔ)文化演講-中國(guó)戲曲【Chinese Opera】
- 全國(guó)2016年10月自考00043經(jīng)濟(jì)法概論(財(cái)經(jīng)類)試題及答案
- 凈化工程施工驗(yàn)收?qǐng)?bào)告正規(guī)版
- 基于改進(jìn)蟻群算法的移動(dòng)機(jī)器人路徑規(guī)劃研究共3篇
- 侵蝕溝分級(jí)分類-征求意見稿
- 市場(chǎng)主體住所(經(jīng)營(yíng)場(chǎng)所)申報(bào)承諾書
- 房地產(chǎn) -建筑安裝工程工期定額文件(2023版)
- GJB《質(zhì)量分析報(bào)告》模板
- GB/T 27030-2006合格評(píng)定第三方符合性標(biāo)志的通用要求
- GB/T 17271-1998集裝箱運(yùn)輸術(shù)語(yǔ)
評(píng)論
0/150
提交評(píng)論