HomeDFD examples › Library Management System

DFD for Library Management System

Context diagram and Level 1 DFD for a library management system, explained step by step, and ready to edit in the browser.

A library management system keeps track of members, books and every issue and return. It's one of the most popular DFD topics for BCA, MCA, B.Tech and diploma projects because the data flows are easy to follow.

Below you'll find the context diagram (Level 0) and the Level 1 DFD, with every entity, process, data store and data flow explained. Open either one in the editor to change it for your own project.

Context diagram (Level 0)

Context diagram (Level 0 DFD) for Library Management System

Context diagram for the library management system: the whole system as process 0, with its external entities.

External entities

  • Member: Registers, requests and returns books, and receives the library card, issue slips and fine receipts.
  • Librarian: Adds new books to the catalogue and receives reports on issues, returns and stock.

Data flows in the context diagram

FromToData flow
Member0 Library Management SystemRegistration details
Member0 Library Management SystemBook request / return
0 Library Management SystemMemberLibrary card, issue slip & fine receipt
Librarian0 Library Management SystemNew book details
0 Library Management SystemLibrarianReports

Level 1 DFD

Level 1 DFD for Library Management System

Level 1 DFD: process 0 broken into its main processes, with the data stores they use.

Processes

ProcessWhat it does
1.0 Register MemberChecks the registration details, saves the member and issues a library card.
2.0 Issue BookChecks the member's status and book availability, then records the issue and prints an issue slip.
3.0 Return Book & Collect FineMatches the returned book to its issue record, calculates any late fine and records the return.
4.0 Manage BooksAdds or updates book records from the librarian.
5.0 Generate ReportsReads the transactions and produces reports for the librarian.

Data stores

  • D1 Members: Member details and membership status.
  • D2 Books: Book catalogue and availability.
  • D3 Transactions: Every issue, return and fine.

All data flows in the Level 1 DFD

FromToData flow
Member1.0 Register MemberRegistration details
1.0 Register MemberD1 MembersMember record
1.0 Register MemberMemberLibrary card
Member2.0 Issue BookBook request
D1 Members2.0 Issue BookMember status
D2 Books2.0 Issue BookBook availability
2.0 Issue BookD3 TransactionsIssue record
2.0 Issue BookMemberIssue slip
Member3.0 Return Book & Collect FineReturned book
D3 Transactions3.0 Return Book & Collect FineIssue details
3.0 Return Book & Collect FineD3 TransactionsReturn & fine record
3.0 Return Book & Collect FineMemberFine receipt
Librarian4.0 Manage BooksNew book details
4.0 Manage BooksD2 BooksBook record
D3 Transactions5.0 Generate ReportsTransactions
5.0 Generate ReportsLibrarianReports

Is it balanced?

Yes. Every external entity in the context diagram also appears in the Level 1 DFD, and the data going in and out matches. For example, the flows to and from Member in the context diagram are split into more specific flows on Level 1. Both diagrams also pass DrawDFD's rule checker, with no black holes, miracles or unused data stores.

Tips for your project

  • Keep fine calculation inside 3.0 for a Level 1 DFD. If your teacher wants more detail, break 3.0 down in a Level 2 DFD (3.1 Check Return Date, 3.2 Calculate Fine, 3.3 Update Record).
  • Some projects add an Admin entity who sets fine rates and library rules. If you add it, remember to add it to both the context diagram and the Level 1 DFD.
Level 2: pick the most complex Level 1 process and draw its steps on a new diagram, numbered like 2.1, 2.2, 2.3. Use a System boundary shape labelled with the parent process. How to draw a Level 2 DFD →

More DFD examples

Ready to draw your DFD?

Open the free editor. No sign-up, and you can start from any example.

Open DrawDFD