




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 MATGRAPH BY EXAMPLE 27 three one eight five two nine seven four six F IGURE 12. A drawing of a graph read into M ATGRAPH via the graph parser program. F IGURE 13. A picture of Q4 produced by exporting a graph from M ATGRAPH and then laid out using GraphViz. M ATGRAPH can save graphs in a format tha
2、t can be read by OmniGrafe. The M ATGRAPH command graffle(g,filename.graffle writes the graph to disk. Double clicking the created le launches OmniGrafe. Heres an example: cube(g,3 graffle(g,cube.graffle Using OmniGrafes layout tool, we can produce a nice embedding of the graph as shown in Figure 14
3、. 28 EDWARD SCHEINERMAN F IGURE 14. A picture of Q4 produced by exporting a graph from M ATGRAPH and then laid out using OmniGrafe. To a limited extent, it is possible to convert graphs prepared in OmniGrafe for import into M ATInside the matgraph/tools directory resides a program named graffle2sgf.
4、py. This is a Python language program so, in order to run it you must have Python installed on your computer. This program takes as input a graph saved by OmniGrafe and returns as output a matrix specifying the graph in Simple Graph Format (see 9.2. Suppose you have created a graph using OmniGrafe a
5、nd saved it on your hard disk in a le called mygraph.graffle. Issue the following command in the Unix shell: ./graffle2sgf.py mygraph This reads the graph saved by OmniGrafe and writes the relevant data into the le mygraph. Now, inside MATLAB, do the following: load mygraph sgf(g,mygraph g Graph wit
6、h 5 vertices and 6 edges (full The MATLAB command load mygraph reads the le mygraph and saves the matrix contained therein into a variable that is also named mygraph. The command sgf(g,mygraph overwrites g with the graph specied by the SGF matrix mygraph. The graffle2sgf.py tool is not completely re
7、liable. It works well on diagrams that contain only nodes and edges. If there are other extraneous lines or text in the diagram (which an OmniGrafe diagram certainly may have, then the program can get confused and give poor performance. Readers are invited to submit a better version. GRAPH . MORE , D EPARTMENT OF A PPLIED M ATHEMATI
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝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ù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 醫(yī)美品牌加盟合同范例
- 與餐廳合作合同范例
- 策劃崗位員工合同范本
- 信用購(gòu)機(jī)合同范本
- 土地征用合同范本
- 轎車免責(zé)協(xié)議合同范本
- 認(rèn)購(gòu)酒店房屋合同范本
- 培訓(xùn)機(jī)構(gòu)部門工作總結(jié)
- 電梯檢驗(yàn)知識(shí)培訓(xùn)
- 鉆孔引流術(shù)后護(hù)理
- 青鳥消防JB-QB-JBF5012火災(zāi)報(bào)警控制器使用說(shuō)明書V1.3
- 職業(yè)技能培訓(xùn)投標(biāo)方案(技術(shù)方案)
- 2024年四川省南充市重點(diǎn)中學(xué)小升初語(yǔ)文入學(xué)考試卷含答案
- 合金冶煉有限公司2×33000KVA全密閉硅錳合金礦熱爐配套煤氣發(fā)電項(xiàng)目環(huán)評(píng)可研資料環(huán)境影響
- 公路養(yǎng)護(hù)服務(wù)服務(wù)承諾及其質(zhì)量保證措施
- 反電信詐騙安全教育課件
- 砂石料供應(yīng)、運(yùn)輸、售后服務(wù)方案-1
- JGT160-2017 混凝土用機(jī)械錨栓
- 25道南昌軌道交通集團(tuán)運(yùn)營(yíng)管理類崗位崗位常見面試問(wèn)題含HR常問(wèn)問(wèn)題考察點(diǎn)及參考回答
- 外語(yǔ)學(xué)習(xí)焦慮與對(duì)策
- 2023年10月自考00054管理學(xué)原理真題及答案含評(píng)分標(biāo)準(zhǔn)
評(píng)論
0/150
提交評(píng)論