版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 廣東司法警官職業(yè)學(xué)院《新能源材料》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣東省外語藝術(shù)職業(yè)學(xué)院《商務(wù)溝通與談判技巧》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣東輕工職業(yè)技術(shù)學(xué)院《手繪插圖技法》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣東農(nóng)工商職業(yè)技術(shù)學(xué)院《健康評估1》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣東女子職業(yè)技術(shù)學(xué)院《作文教學(xué)設(shè)計》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣東茂名健康職業(yè)學(xué)院《物理思維方法》2023-2024學(xué)年第一學(xué)期期末試卷
- 【原創(chuàng)】2013-2020學(xué)年高一生物(蘇教版)下學(xué)期期末復(fù)習(xí)試題(一)
- 【創(chuàng)新設(shè)計】2022年高三生物(人教版)一輪復(fù)習(xí)-基礎(chǔ)課時案45-細胞工程-考點探究
- 【經(jīng)濟貿(mào)易】大學(xué)《微觀經(jīng)濟學(xué)》課件
- 《創(chuàng)業(yè)企劃書》課件
- 2024年中國消防救援學(xué)院第二批面向應(yīng)屆畢業(yè)生招聘28人歷年【重點基礎(chǔ)提升】模擬試題(共500題)附帶答案詳解
- 食品加工代工配方保密協(xié)議
- (完整版)儀表選型
- T-CCAA 39-2022碳管理體系 要求
- 《YST 550-20xx 金屬熱噴涂層剪切強度的測定》-編制說明送審
- 2024-2030年中國氣槍行業(yè)市場深度分析及發(fā)展前景預(yù)測報告
- 數(shù)字化技術(shù)在促進幼兒語言發(fā)展中的應(yīng)用
- 江西省上饒市2023-2024學(xué)年高一上學(xué)期期末教學(xué)質(zhì)量測試物理試題(解析版)
- 提高感染性休克集束化治療達標(biāo)率
- 2024年財務(wù)風(fēng)險評估和控制培訓(xùn)資料
- 2024建筑消防設(shè)施檢測報告書模板
評論
0/150
提交評論